summaryrefslogtreecommitdiff
path: root/docs/scripts/copy-images.sh
blob: cba43d9d99d7a61f22a7b129bf404c8aad71302f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
ROLE="$1"
XMLFILE="$2"
FROM="$3"
TO="$4"

for x in `xsltproc --stringparam prepend "" --stringparam append "" --stringparam role "$ROLE" xslt/find-image-dependencies.xsl "$XMLFILE"`
do
	test -f $FROM/$x || make $FROM/$x || exit 1
	cp -u $FROM/$x $TO/$x || exit 1
done
exit