Subversion Repositories pub

Compare Revisions

No changes between revisions

Ignore whitespace Rev 485 → Rev 486

/video-contact-sheet/branches/1.13/dist/docs/src/flatten_settings_xml.bash
0,0 → 1,24
#!/bin/bash
 
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