summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-08-10 11:25:52 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-08-10 11:25:52 (GMT)
commitebaebdacf45166a587e4e4d2d5e7b2f7a08965e2 (patch)
tree73f26ed811f2d827c1a57be49a24c85471b89679 /scripts
parent40d0034f3f9067b75601e557d1ca425a0e14b406 (diff)
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mk-patch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mk-patch.sh b/scripts/mk-patch.sh
index 2cd4529..3489d9d 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}"