Show
Ignore:
Timestamp:
10/14/09 20:28:21 (2 years ago)
Author:
tg
Message:

ensure people don't try to build this as superuser

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/BSDmakefile

    r3732 r3880  
    77TOPDIR=         ${.CURDIR} 
    88PWD=            ${.CURDIR} 
     9USER_ID!=       id -u 
    910 
    1011.if defined(package) && !empty(package) 
     
    1516.endif 
    1617 
    17 .if defined(subdir) && !empty(subdir) 
     18.if ${USER_ID} == 0 
     19${.TARGETS}: _nixda 
     20 
     21_nixda: 
     22        @echo Do not build as root! It causes problems. 
     23        @exit 1 
     24.elif defined(subdir) && !empty(subdir) 
    1825_subdir:=       ${.TARGETS} 
    1926${.TARGETS}: _subdir