Use the path discovered by ./configure in scripts/patch-renumber.sh

It now requires that "./configure && make" be run beforehand.

 /trunk/scripts/patch-renumber.sh |    6     5     1     0 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
This commit is contained in:
Yann E. MORIN" 2009-01-29 19:00:08 +00:00
parent 1b05494c83
commit c310dd7605

View File

@ -1,8 +1,12 @@
#!/bin/sh
# Yes, this intends to be a true POSIX script file.
set -e
myname="$0"
# Parse the tools' paths configuration
. "paths.mk"
doUsage() {
cat <<_EOF_
Usage: ${myname} <dir> <base> <inc>
@ -26,7 +30,7 @@ esac
for p in "${dir}"/*.patch; do
[ -e "${p}" ] || { echo "No such file '${p}'"; exit 1; }
newname="$(printf "%03d" ${cpt})-$(basename "${p}" |sed -r -e 's/^[[:digit:]]{3}-//')"
newname="$(printf "%03d" ${cpt})-$(basename "${p}" |"${sed}" -r -e 's/^[[:digit:]]{3}-//')"
[ "${p}" = "${dir}/${newname}" ] || ${CMD} "${p}" "${dir}/${newname}"
cpt=$((cpt+inc))
done