diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-08-10 13:25:52 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-08-10 13:25:52 +0200 |
commit | ebaebdacf45166a587e4e4d2d5e7b2f7a08965e2 (patch) | |
tree | 73f26ed811f2d827c1a57be49a24c85471b89679 | |
parent | 40d0034f3f9067b75601e557d1ca425a0e14b406 (diff) | |
download | crosstool-ng-ebaebdacf45166a587e4e4d2d5e7b2f7a08965e2.tar.gz crosstool-ng-ebaebdacf45166a587e4e4d2d5e7b2f7a08965e2.tar.bz2 crosstool-ng-ebaebdacf45166a587e4e4d2d5e7b2f7a08965e2.zip |
scripts: better sanitise the patch names
When generating the fixes-patches, better sanitise the generated
file names, as it seems to raise a few issues for some people.
-rwxr-xr-x | scripts/mk-patch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mk-patch.sh b/scripts/mk-patch.sh index 2cd45290..3489d9de 100755 --- a/scripts/mk-patch.sh +++ b/scripts/mk-patch.sh @@ -34,7 +34,7 @@ hg -R "${repos}" log -b "${branch}" -r "${r1}:tip" --template '{rev}\n' \ continue fi plog=$( hg -R "${repos}" log -r ${rev} --template '{desc|firstline}\n' \ - |sed -r -e 's,[/ :]+,_,g;' \ + |sed -r -e 's,[/:,[:space:]],_,g; s/_+/_/g;' \ ) pname="${p}-${plog}.patch" printf "Revision '%d' --> '%s'\n" ${rev} "${pname}" |