Subversion Repositories pub

Compare Revisions

Problem with comparison.

Ignore whitespace Rev HEAD → Rev 487

/video-contact-sheet/branches/1.13/dist/docs/src/flatten_settings_xml.bash
0,0 → 1,30
#!/bin/bash
 
#
# This file inlines file included through the XIncludes system.
# This workaround is used to work with jade (used in PDF
# creation) since, AFAIK, it doesn't support XIncludes.
#
 
SETTINGS_XML=vcs.conf.man.xml
 
IN=0
while read line ; do
if grep -q '<xi:include' <<<"$line" ; then
IN=1
elif [[ $IN -eq 1 ]]; then
if grep -q 'href=' <<<"$line" ; then
toinclude=$(sed -r 's/.*href="([^"]*)".*/\1/'<<<"$line")
docstart=$(egrep -n '^]>$' $toinclude | cut -d':' -f1)
let 'docstart++'
sed -n "$docstart,\$p" "$toinclude"
fi
fi
if [[ $IN -ne 1 ]]; then
echo "$line"
fi
if [[ $IN -eq 1 ]] && grep -q '/>' <<<"$line"; then
IN=0
fi
done < ${SETTINGS_XML}
 
Property changes:
Added: svn:executable
+*
\ No newline at end of property