blob: 7c4ece81e1689414f2ed15f9df43ba17f3fa15a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#! /bin/bash
HTTPDEST='/var/epgd/www'
inotifywait -mrq -e modify,moved_to ./src | while read x op f; do\
if ! [[ "$f" == *"~"* ]]; then
if [[ "$f" == *".less" ]]; then
make style
cp ./www/epgd.css $HTTPDEST/
elif [[ "$f" == *".js" ]]; then
echo -------------------------------------------------------------------------------------------------------------------
make core
cp ./epgd.full.js $HTTPDEST/epgd.full.js
cp ./www/epgd.js $HTTPDEST/epgd.js
fi
if [[ "$x" == "./src/lang/" ]]; then
cp ./src/lang/$f $HTTPDEST/lang/
cp ./src/lang/$f ./www/lang/
fi
fi
done
exit
|