mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-29 15:44:03 +00:00
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:
parent
81862cd306
commit
1063559541
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user