Tweaked the patch name to include the commit number if available.

- Legacy-Id: 16234
This commit is contained in:
Henrik Levkowetz 2019-06-07 12:29:16 +00:00
parent f4e2352eed
commit 0bef48de2d

View file

@ -109,6 +109,7 @@ if [ $# -lt 2 ]; then die "Expected patch name and file list on the command line
if [[ $1 =~ / ]]; then die "Expected a patch name, but the first argument to $program seems to be a file path: '$1'"; fi
name=$1; shift;
if [ "$CHG" ]; then name="$name-c$CHG"; fi
patchfile=$progdir/../../patches/$(date +%Y-%m-%d)-$name.patch
if [ -e $patchfile ]; then die "Patchfile $patchfile already exists"; fi