Changeset ae1e313 in freewrt for BSDmakefile


Ignore:
Timestamp:
Oct 14, 2009, 8:28:21 PM (16 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
08c8e8e
Parents:
3ef0a5e
Message:

ensure people don't try to build this as superuser

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@3880 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BSDmakefile

    r3ef0a5e rae1e313  
    77TOPDIR=         ${.CURDIR}
    88PWD=            ${.CURDIR}
     9USER_ID!=       id -u
    910
    1011.if defined(package) && !empty(package)
     
    1213.endif
    1314
    14 .if defined(subdir) && !empty(subdir)
     15.if ${USER_ID} == 0
     16${.TARGETS}: _nixda
     17
     18_nixda:
     19        @echo Do not build as root! It causes problems.
     20        @exit 1
     21.elif defined(subdir) && !empty(subdir)
    1522_subdir:=       ${.TARGETS}
    1623${.TARGETS}: _subdir
Note: See TracChangeset for help on using the changeset viewer.