Fix sorting of mirrors. Newer versions of xsltproc
add a newline after comments which breaks the pattern used by awk. Directly search for @sortkey@ now. Discussed with: hrs
This commit is contained in:
parent
f46cec4513
commit
f1510cc0c0
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=23559
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ ${XML_MIRRORS}: ${XML_MIRRORS_MASTER} ${XSL_TRANSTABLE} ${XSL_TRANSTABLE_MASTER}
|
|||
| env -i LANG="${LANGCODE}" ${SORT} -f > $@.sort.tmp
|
||||
env -i ${GREP} "^<?xml" < $@.sort.tmp > $@.sort
|
||||
${ECHO} "<sortkeys>" >> $@.sort
|
||||
env -i ${AWK} '/^ / {sub(/@sortkey@/, ++line); print;}' < $@.sort.tmp >> $@.sort
|
||||
env -i ${AWK} '/@sortkey@/ {sub(/@sortkey@/, ++line); print;}' < $@.sort.tmp >> $@.sort
|
||||
${ECHO} '</sortkeys>' >> $@.sort
|
||||
${XSLTPROC} ${XSLTPROCOPTS} -o $@ \
|
||||
--param 'transtable.xml' "'${XML_TRANSTABLE}'" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue