Tweaked the naming of patches derived from commits.

- Legacy-Id: 17792
This commit is contained in:
Henrik Levkowetz 2020-05-13 13:02:33 +00:00
parent c9f69f1869
commit b53d78a0ad

View file

@ -106,7 +106,7 @@ done
# The program itself # The program itself
if [ "$CHG" ]; then if [ "$CHG" ]; then
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=$(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' -e's/-$//' | cut -c 1-40)
name="$name-c$CHG" name="$name-c$CHG"
else else
if [ $# -lt 2 ]; then die "Expected patch name and file list on the command line."; fi if [ $# -lt 2 ]; then die "Expected patch name and file list on the command line."; fi