0ad/source/tools/templatessorter/templatessorter.sh
2011-07-30 20:20:34 +00:00

12 lines
268 B
Bash

#!/bin/bash
# check arguments count
if [ $# -ne 1 ]; then
echo 'usage: '$0' directory'
exit
fi
# assign arguments to variables with readable names
input_directory=$1
# perform work
find $input_directory -name \*.xml -exec xsltproc -o {} templatessorter.xsl {} \;