Changeset 3731

Show
Ignore:
Timestamp:
04/08/08 15:21:38 (8 months ago)
Author:
tg
Message:

ensure the umask is sane, thanks to wschlich for noticing

Files:

Legend:

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

    r2486 r3731  
    2020 
    2121_subdir: ${_subdir_dep} 
     22        @if test x"$(umask 2>/dev/null)" != 022; then \ 
     23                echo >&2 Error: you must build with “umask 022”, sorry.; \ 
     24                exit 1; \ 
     25        fi 
    2226        cd ${.CURDIR}/${subdir} && TOPDIR=${.CURDIR} DEVELOPER=1 \ 
    2327            ${.CURDIR}/lbin/gmake V=99 ${.MFLAGS} ${_subdir} 
  • trunk/freewrt/GNUmakefile

    r2299 r3731  
    1717 
    1818_subdir: ${_subdir_dep} 
     19        @if test x"$(umask 2>/dev/null)" != 022; then \ 
     20                echo >&2 Error: you must build with “umask 022”, sorry.; \ 
     21                exit 1; \ 
     22        fi 
    1923        cd ${subdir} && TOPDIR=${TOPDIR} DEVELOPER=1 \ 
    2024            ${TOPDIR}/lbin/gmake V=99 ${MAKEFLAGS} ${MAKECMDGOALS} 
  • trunk/freewrt/Makefile

    r3643 r3731  
    136136        @if ! bash --version 2>&1 | fgrep 'GNU bash' >/dev/null 2>&1; then \ 
    137137                echo "FreeWRT requires GNU bash to be installed, sorry."; \ 
     138                exit 1; \ 
     139        fi 
     140        @if test x"$(umask 2>/dev/null)" != 022; then \ 
     141                echo >&2 Error: you must build with “umask 022”, sorry.; \ 
    138142                exit 1; \ 
    139143        fi 
  • trunk/freewrt/mk/build.mk

    r3673 r3731  
    55# or at http://www.freewrt.org/licence for details. 
    66 
    7 TOPDIR=${shell pwd} 
     7TOPDIR=$(shell pwd) 
    88export TOPDIR 
     9 
     10ifneq ($(shell umask),022) 
     11$(error your umask is not 022) 
     12endif 
    913 
    1014CONFIG_CONFIG_IN = Config.in