diff --git a/scripts/Build-Tools b/scripts/Build-Tools index e6a5cb43e..0270d2797 100755 --- a/scripts/Build-Tools +++ b/scripts/Build-Tools @@ -176,16 +176,16 @@ if [ ! -f build/$ROCKCFG_ID/ROCK/$toolsdir/.lastupdate ] ; then done < <( bash scripts/xfind.sh package/. target/$target/. misc/. -name 'wrappers.in' ) # echo_status "Building $toolsdir/wrapper/strip_wrapper." - cat << 'EOT' > build/$ROCKCFG_ID/ROCK/$toolsdir/wrapper/strip_wrapper.$$ + cat << EOT > build/$ROCKCFG_ID/ROCK/$toolsdir/wrapper/strip_wrapper.$$ #!/bin/sh -if [ "$STRIP_WRAPPER_NOLOOP" = 1 ] ; then +if [ "\$STRIP_WRAPPER_NOLOOP" = 1 ] ; then echo "Aaaaaeik! Strip wrapper is looping!" >&2 exit 1 fi -if [ "$ROCKCFG_DEBUG" = 0 ] ; then - PATH=${PATH//$STRIP_WRAPPER_MYPATH:/} +if [ "\$ROCKCFG_DEBUG" = 0 ] ; then + PATH=\${PATH//\$STRIP_WRAPPER_MYPATH:/} export STRIP_WRAPPER_NOLOOP=1 - exec "`basename $0`" "$@" + exec "\$( basename \$0 )" "\$@" fi exit 0 EOT