-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (25 loc) · 952 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# commands which automatize some common tasks
build:
-rm -r cloudCode/public/*
node_modules/grunt-cli/bin/grunt build
-rm -rf cloudCode/public/bower_components/
# task which build application and deploy it to Parse.com
deploy: manifest build
cd cloudCode/; \
parse deploy `cat ../parse_app_name.txt`;
# task which create language messages file and put it to shareApp/app/i18n directory
makemessages:
cd shareApp; \
grunt i18nextract;
manifest:
( cd shareApp/app ; \
cat manifest-top.txt ;\
ls img/*/normal-*.png; \
ls img/*/retina-*.png; ls i18n/*.js; ls img/*png; \
ls img/*gif; ls img/*jpg; ls img/favicons/* ; \
ls img/backgrounds/* ; ls views/*html ; ls styles/fonts/*; \
echo ""; echo "NETWORK:"; echo "*"; echo ""; echo "SETTINGS:"; echo "prefer-online";\
echo "# version "`date +"%s"` ) | cat > manifest
echo "Manifest changes are.... "
-diff shareApp/app/share.appcache manifest
mv manifest shareApp/app/share.appcache