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:
parent
3ac2b73ffb
commit
99e27d4661
|
@ -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
|
Loading…
Reference in New Issue