forked from idiomatic/HandyNotes_Achievements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 904 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
31
APP = HandyNotes-Achievements
TOC = HandyNotes_Achievements.toc
VERSION = $(shell sed -ne 's/^\#\# Version: //p' $(TOC))
FILES = HandyNotes_Achievements/HandyNotes_Achievements* \
HandyNotes_Achievements/Libs/* \
HandyNotes_Achievements/Locales/* \
CHANGELOG.txt
all:
(cd Libs/AchievementLocations-1.0 && make)
release: chmod
-rm ../$(APP)-$(VERSION).zip
find . -name .DS_Store -exec rm {} \;
(cd .. && zip -r $(APP)-$(VERSION).zip $(FILES) -x '*/Makefile' -x '*/package*.json' -x '*/node_modules/*' -x '*.coffee' -x '*/.git*')
chmod:
find . -type f -exec chmod a-x {} \;
find Libs/AchievementLocations-1.0/node_modules/.bin \! -type d -exec chmod a+x {} \;
find . -exec chmod og-w,a+r {} \;
#tag:
# git tag -a v$(VERSION) -m "tag"
# git push --tags
wowace_clone:
git remote add wowace [email protected]:wow/handynotes_achievements/mainline.git
push:
git push wowace master