Browse Source

squawk if attached to wrong PANDA

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

+ 3 - 0
panda/Package.pp

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