mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 00:23:56 +00:00
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.
This commit is contained in:
parent
40d0034f3f
commit
ebaebdacf4
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user