Changeset 702ae5e in freewrt


Ignore:
Timestamp:
Apr 8, 2008, 3:21:38 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
b2a5ce0
Parents:
2955943
Message:

ensure the umask is sane, thanks to wschlich for noticing

git-svn-id: svn://www.freewrt.org/trunk/freewrt@3731 afb5a338-a214-0410-bd46-81f09a774fd1

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • BSDmakefile

    r2955943 r702ae5e  
    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}
  • GNUmakefile

    r2955943 r702ae5e  
    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}
  • Makefile

    r2955943 r702ae5e  
    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
  • mk/build.mk

    r2955943 r702ae5e  
    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
Note: See TracChangeset for help on using the changeset viewer.