Tweaked bin/mkpatch some for -c handling

- Legacy-Id: 17444
This commit is contained in:
Henrik Levkowetz 2020-03-16 18:33:44 +00:00
parent 9acd467e75
commit 52b6009289

View file

@ -106,7 +106,7 @@ done
# The program itself
if [ "$CHG" ]; then
name=$(echo $(svn log -c $CHG | sed -r -e '/^---/d' -e '/^r[0-9]+/d' -e '/^$/d') | sed -r -e 's/(.*)/\L\1/' -e 's/[^[:alnum:]]/-/g' -e 's/-+/-/g' | cut -c 1-32)
name=$(echo $(svn log -c $CHG | sed -r -e '/^---/d' -e '/^r[0-9]+/d' -e '/^$/d' -e 's/Merged in \[[0-9]+\] from [^:]+..//' ) | sed -r -e 's/(.*)/\L\1/' -e 's/[^[:alnum:]]/-/g' -e 's/-+/-/g' | cut -c 1-40)
name="$name-c$CHG"
else
if [ $# -lt 2 ]; then die "Expected patch name and file list on the command line."; fi