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:
Martin Heinen 2005-01-15 15:02:12 +00:00
parent f46cec4513
commit f1510cc0c0
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=23559

View file

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