Changeset 3732

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

grml… some shells and makes differ

Files:

Legend:

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

    r3731 r3732  
    2020 
    2121_subdir: ${_subdir_dep} 
    22         @if test x"$(umask 2>/dev/null)" != 022; then \ 
     22        @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \ 
    2323                echo >&2 Error: you must build with “umask 022”, sorry.; \ 
    2424                exit 1; \ 
  • trunk/freewrt/GNUmakefile

    r3731 r3732  
    1717 
    1818_subdir: ${_subdir_dep} 
    19         @if test x"$(umask 2>/dev/null)" != 022; then \ 
     19        @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \ 
    2020                echo >&2 Error: you must build with “umask 022”, sorry.; \ 
    2121                exit 1; \ 
  • trunk/freewrt/Makefile

    r3731 r3732  
    138138                exit 1; \ 
    139139        fi 
    140         @if test x"$(umask 2>/dev/null)" != 022; then \ 
     140        @if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \ 
    141141                echo >&2 Error: you must build with “umask 022”, sorry.; \ 
    142142                exit 1; \ 
  • trunk/freewrt/mk/build.mk

    r3731 r3732  
    88export TOPDIR 
    99 
    10 ifneq ($(shell umask),022
     10ifneq ($(shell umask 2>/dev/null | sed 's/0*022/OK/'),OK
    1111$(error your umask is not 022) 
    1212endif