1 2 3 4 5 6 7 8 9 10 11
#!/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 cp -u $FROM/$x $TO/$x || exit 1 done exit