mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
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:
parent
1b05494c83
commit
c310dd7605
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user