scripts/mk-patch: squash all non alphanumeric chars

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-04-08 00:58:33 +02:00
parent 81862cd306
commit 1063559541

View File

@ -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}"