diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-21 23:05:37 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-21 23:10:14 +1100 |
commit | 69c6e971a244e0837ed95537c9e4ea53e67b8b75 (patch) | |
tree | d8f10afd88f54c329007d4ad854059d2b02727c9 /source4/heimdal_build/et_compile_wrapper.sh | |
parent | a3ed70ff96122531ba000123cdf3992d26663f30 (diff) | |
download | samba-69c6e971a244e0837ed95537c9e4ea53e67b8b75.tar.gz samba-69c6e971a244e0837ed95537c9e4ea53e67b8b75.tar.bz2 samba-69c6e971a244e0837ed95537c9e4ea53e67b8b75.zip |
heimdal: fixed the waf build with a space in the directory name
Diffstat (limited to 'source4/heimdal_build/et_compile_wrapper.sh')
-rwxr-xr-x | source4/heimdal_build/et_compile_wrapper.sh | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/source4/heimdal_build/et_compile_wrapper.sh b/source4/heimdal_build/et_compile_wrapper.sh index b267bb5ddc..939b434767 100755 --- a/source4/heimdal_build/et_compile_wrapper.sh +++ b/source4/heimdal_build/et_compile_wrapper.sh @@ -1,13 +1,13 @@ #!/bin/sh # -SELF=$0 -SELFDIR=`dirname ${SELF}` +SELF="$0" +SELFDIR=`dirname "${SELF}"` -DESTDIR=$1 -CMD=$2 -FILE=$3 -SOURCE=$4 +DESTDIR="$1" +CMD="$2" +FILE="$3" +SOURCE="$4" shift 4 test -z "${DESTDIR}" && { @@ -30,22 +30,22 @@ test -z "${SOURCE}" && { exit 1; } -CURDIR=`pwd` +CURDIR="`pwd`" -cd ${DESTDIR} && { +cd "${DESTDIR}" && { # Remove older copies beforehand - MIT's compile_et uses odd permissions for these # files, which makes Heimdal's compile_et fail mysteriously when writing to them. - rm -f `basename ${FILE} .et`.c - rm -f `basename ${FILE} .et`.h - ${CMD} ${FILE} >&2 || exit 1; - cd ${CURDIR} + rm -f `basename "${FILE}" .et`.c + rm -f `basename "${FILE}" .et`.h + "${CMD}" "${FILE}" >&2 || exit 1; + cd "${CURDIR}" TMP="${SOURCE}.$$" - mv ${SOURCE} ${TMP} && { - echo "#include \"config.h\"" > ${SOURCE} && { - cat ${TMP} >> ${SOURCE} + mv "${SOURCE}" "${TMP}" && { + echo "#include \"config.h\"" > "${SOURCE}" && { + cat "${TMP}" >> "${SOURCE}" } } - rm -f ${TMP} + rm -f "${TMP}" } || { echo "${SELF}:cannot cd into '${DESTDIR}'" >&2; exit 1; |