D-Bus API: added update script for docbook XSL

Script which might come handy for updating our copy of the docbook
XSL files.
This commit is contained in:
Patrick Ohly 2012-07-03 11:31:45 +02:00
parent 3ac2b73ffb
commit 99e27d4661
1 changed files with 15 additions and 0 deletions

15
build/xsl-update.sh Executable file
View File

@ -0,0 +1,15 @@
#! /bin/sh
#
# Download current version of all our docbook XSL files.
# Handles download errors by retrying. Does not handle
# new or removed files, that needs to be done manually.
set -x
cd `dirname $0`/xsl
for i in `find * -type f`; do
for attempt in `seq 0 10`; do
if wget -O $i.tmp http://docbook.sourceforge.net/release/xsl/current/$i && mv $i.tmp $i; then
break
fi
done
done