Cleaning
This commit is contained in:
26
utils/compiler.sh
Executable file
26
utils/compiler.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
|
||||
if [ -z "$output" ]; then
|
||||
cat $args
|
||||
else
|
||||
cat $args > $output
|
||||
fi
|
||||
Reference in New Issue
Block a user