Changeset 2727

Show
Ignore:
Timestamp:
06/06/07 14:33:36 (1 year ago)
Author:
tg
Message:

“echo -e” is not portable, damnit!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/mk/kernel-build.mk

    r2687 r2727  
    8484        rm -rf ${LINUX_BUILD_DIR}/root* 
    8585        cd ${BUILD_DIR} && pax -rw -pe root ${LINUX_BUILD_DIR}/ 
    86         echo -e 'dest root /\noption offline_root $(LINUX_BUILD_DIR)/root' \ 
    87                 > $(LINUX_BUILD_DIR)/ipkg.conf 
     86        printf '%s\n%s\n' 'dest root /' \ 
     87            'option offline_root $(LINUX_BUILD_DIR)/root' \ 
     88            >$(LINUX_BUILD_DIR)/ipkg.conf 
    8889ifneq ($(strip $(INSTALL_TARGETS)),) 
    8990        $(IPKG_KERNEL) install $(INSTALL_TARGETS) $(MAKE_TRACE) 
  • trunk/freewrt/package/mini_fo/Makefile

    r2678 r2727  
    2828 
    2929do-configure: 
    30         echo -e '%g/\\$$Id\\$$/s//$$Id$$/\nwq' | ed -s ${WRKBUILD}/main.c 
     30        printf '%s\nwq\n' '%g/\$$Id\$$/s//$$Id$$/' | \ 
     31            ed -s ${WRKBUILD}/main.c 
    3132 
    3233do-install: 
  • trunk/freewrt/scripts/ib.sh

    r2585 r2727  
    174174echo "creating temporary dir: ${tmpdir}" 
    175175 
    176 echo -e "dest root /\noption offline_root ${tmpdir}/root" > ${tmpdir}/ipkg.conf 
     176printf '%s\n%s\n' "dest root /" "option offline_root ${tmpdir}/root" >${tmpdir}/ipkg.conf 
    177177ipkg_command="env IPKG_TMP=${tmpdir}/tmp IPKG_INSTROOT=${tmpdir}/root IPKG_CONF_DIR=${tmpdir} ${toolsdir}/ipkg -force-defaults -force-depends" 
    178178 
  • trunk/freewrt/target/linux/generic-2.4/patches/223-mini_fo.patch

    r1111 r2727  
    57315731+ 
    57325732+if ! [ -d "$BASE" ] || ! [ -d "$STO" ]; then 
    5733 +    echo -e "$0:\n Error, -s and/or -b argument missing. type $0 -h for help." 
     5733+    printf '%s\n%s\n' "$0:" " Error, -s and/or -b argument missing. type $0 -h for help." 
    57345734+    exit -1; 
    57355735+fi 
     
    57835783+ 
    57845784+# delete all whiteouted files from base 
    5785 +echo -e "\nDeleting whiteout'ed files from base file system..." 
     5785+printf '\nDeleting whiteout'\''ed files from base file system...\n' 
    57865786+find . -name $META_NAME -type f -print0  | xargs -0 -e grep  -e '^D ' | sed -e 's/:D//' | while read ENTRY; do  
    57875787+    META_FILE=`echo $ENTRY | cut -d ' ' -f 1` 
     
    57995799+ 
    58005800+# create all dirs and update permissions 
    5801 +echo -e "\nSetting up directory structures in base file system..." 
     5801+printf '\nSetting up directory structures in base file system...\n' 
    58025802+find . -type d | sed -e 's/^\.\///' | while read DIR; do 
    58035803+    PERMS=`stat -c %a $DIR` 
     
    58145814+ 
    58155815+# merge all non-directory files 
    5816 +echo -e "\nMerging all non-directory files...." 
     5816+printf '\nMerging all non-directory files....\n' 
    58175817+for i in b c p f l s; do 
    58185818+    find . -type $i | sed -e 's/^\.\///' | grep -v "$META_NAME" | while read FILE; do 
  • trunk/freewrt/tools/config/Makefile

    r2297 r2727  
    9999        else \ 
    100100                rm -f lxtemp.c; \ 
    101                 echo -e "\007" ;
     101                printf '\007';
    102102                echo ">> Unable to find the Ncurses libraries." ;\ 
    103103                echo ">>" ;\