3d-interface/utils/simple-compiler/compiler.sh

27 lines
325 B
Bash
Raw Permalink Normal View History

2015-05-27 11:02:51 +02:00
#!/usr/bin/bash
args=""
while [[ $# > 0 ]]; do
key="$1"
case $key in
--js) args="$args $2"
shift
;;
--js_output_file)
output="$2"
shift
;;
esac
shift
done
2015-05-28 16:10:47 +02:00
if [ -z "$output" ]; then
cat $args
else
cat $args > $output
fi