Added -f option to force rebuilds (for when the compiler changes, not
the lib files).
This commit is contained in:
parent
1822df2b1a
commit
1083273b9f
@ -1,4 +1,18 @@
|
||||
#!/bin/sh
|
||||
FLUSH=false
|
||||
while getopts ":f" opt; do
|
||||
case $opt in
|
||||
f)
|
||||
FLUSH=true
|
||||
echo "flushing..."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [ "$FLUSH" = true ] ; then
|
||||
for file in $(find lib/ -name "*.nom.lua") ; do
|
||||
rm $file
|
||||
done
|
||||
fi
|
||||
for file in $(find lib/ -name "*.nom") ; do
|
||||
luafile="$file.lua"
|
||||
if [ ! -e "$luafile" ] || [ "$file" -nt "$luafile" ] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user