We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad5f2ea commit 45a2cbaCopy full SHA for 45a2cba
compile-js.sh
@@ -42,8 +42,9 @@ if [ "$command" == "build" ]
42
then
43
for f in "$@"
44
do
45
- if [ "$f" != "$1" ] && [ "$f" != "$2" ] && [[ $f == *.js ]]
+ if [ "$f" != "$1" ] && [ "$f" != "$2" ] && [[ $f == *.du ]] && [[ $f != *"#"* ]]
46
47
+ # echo $f
48
files=$files$f' '
49
fi
50
done
@@ -60,12 +61,17 @@ fi
60
61
62
63
for f in $files ; do
- list=$list'--js '$f' '
64
- if test $f -nt $output
+ # skip commented lines
65
+ if [[ $f != "#"* ]]
66
- echo $f' is newer then '$output
67
- stale=true
+ list=$list'--js '$f' '
68
+ if test $f -nt $output
69
+ then
70
+ echo $f' is newer then '$output
71
+ stale=true
72
+ fi
73
74
+
75
76
77
#echo -e $files
@@ -82,5 +88,5 @@ else
82
88
echo "No new files to compile."
83
89
84
90
85
-fi
86
91
92
+fi
0 commit comments