Pārlūkot izejas kodu

squawk if attached to wrong DIRECT

David Rose 21 gadi atpakaļ
vecāks
revīzija
50f0ebf987
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      direct/Package.pp

+ 3 - 0
direct/Package.pp

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