Browse Source

squawk if attached to wrong PANDATOOL

David Rose 21 years ago
parent
commit
a24eef9135
1 changed files with 3 additions and 0 deletions
  1. 3 0
      pandatool/Package.pp

+ 3 - 0
pandatool/Package.pp

@@ -42,6 +42,9 @@
   #if $[eq $[PANDATOOL],]
   #if $[eq $[PANDATOOL],]
     #error You seem to be attached to some trees, but not PANDATOOL!
     #error You seem to be attached to some trees, but not PANDATOOL!
   #endif
   #endif
+  #if $[ne $[canonical $[PANDATOOL]], $[canonical $[TOPDIR]]]
+    #error You are not attached to the right PANDATOOL!
+  #endif
 #else
 #else
   #defer PANDATOOL_INSTALL $[unixfilename $[INSTALL_DIR]]
   #defer PANDATOOL_INSTALL $[unixfilename $[INSTALL_DIR]]
   #defer PANDATOOL_INSTALL_OTHER $[unixfilename $[INSTALL_DIR]]
   #defer PANDATOOL_INSTALL_OTHER $[unixfilename $[INSTALL_DIR]]