diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-04-07 22:58:33 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-04-07 22:58:33 (GMT) |
commit | 106355954160964b6f7ae5116bcece9d9c732edb (patch) | |
tree | 98c79b42c2ad5094db5f87d245113a2879ec2b3c /scripts/mk-patch.sh | |
parent | 81862cd306875775ed7961657a3bcae4a0b458e7 (diff) |
scripts/mk-patch: squash all non alphanumeric chars
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/mk-patch.sh')
-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 3489d9d..cd0d644 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,[/:,[:space:]],_,g; s/_+/_/g;' \ + |sed -r -e 's,[^[:alnum:]],_,g; s/_+/_/g;' \ ) pname="${p}-${plog}.patch" printf "Revision '%d' --> '%s'\n" ${rev} "${pname}" |