-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
executable file
·45 lines (31 loc) · 1.03 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
NAMES ?= French-fr-FR
ZIPS = $(NAMES:=.zip)
VERSION ?=
ifdef VERSION
VNAME = -${VERSION}
else
VNAME = ${VERSION}
endif
ZIPIGNORES = -x "*.svn/*" -x ".svnignore" -x ".directory" -x "*.xcf" -x "*admin/help*"
all: $(ZIPS)
%.zip:
@echo "-------------------------------------------------------"
@echo attachments-$*
@rm -f attachments-$@
@(cd attachments-$*; zip -r ../attachments-$*-language-pack${VNAME}.zip * $(ZIPIGNORES))
purge:
@find . -name '*.bak' -exec rm {} \;
fixquotes:
@find ${LANGUAGE} -type f -name '*.ini' -exec sed -i 's/"_QQ_"/\"/g' {} \;
updateweb:
@echo "Updating updates/translations on jmcameron.net..."
@ssh jmcameron.net "cd webapps/jmcameron/attachments/updates/translations; git pull"
TOOLSDIR = /home/jmcameron/src/attachments/translation-tools
linktools:
@echo "Linking translation tools here..."
@for f in ${TOOLSDIR}/*.py; do \
ln -s $${f} . ; \
done;
@ln -s ${TOOLSDIR}/lib .
@ln -s ${TOOLSDIR}/fixlang .
@ln -s ${TOOLSDIR}/fixtokens .