Browse Source

squawk if attached to wrong DTOOL

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

+ 3 - 0
dtool/Package.pp

@@ -40,6 +40,9 @@
   #if $[eq $[DTOOL],]
   #if $[eq $[DTOOL],]
     #error You seem to be attached to some trees, but not DTOOL!
     #error You seem to be attached to some trees, but not DTOOL!
   #endif
   #endif
+  #if $[ne $[canonical $[DTOOL]], $[canonical $[TOPDIR]]]
+    #error You are not attached to the right DTOOL!
+  #endif
 #else
 #else
   // Otherwise, if we are not attached, install in the standard place
   // Otherwise, if we are not attached, install in the standard place
   // (unless the user specifies otherwise).
   // (unless the user specifies otherwise).