-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
24 lines (22 loc) · 940 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
DOMAIN=lazyscripts
COPYRIGHT_YEAR=2010
PYSRC=${DOMAIN}
PODIR=${PWD}/po
POFILE=${PODIR}/${DOMAIN}.pot
FIRST AUTHOR=Hsin-Yi Chen <[email protected]>, ${COPYRIGHT_YEAR}
REV_DATE=`date '+%F %R+%Z'`
LANGUAGE_TEAM=Lazyscripts Developers <[email protected]>
PODESC=lazyscripts is a script management tool
all:
@echo please read Makefile for more details!
update_pot:
@echo -n "updating po file of ${DOMAIN} - "
@pygettext -p ${PODIR} -d ${DOMAIN} ${PYSRC}
@sed -i "s/CHARSET/utf-8/" ${POFILE}
@sed -i "s/ENCODING/utf-8/" ${POFILE}
@sed -i "s/YEAR ORGANIZATION/${COPYRIGHT_YEAR} Lazyscripts Developers/" ${POFILE}
@sed -i "s/FIRST AUTHOR <EMAIL@ADDRESS>, YEAR/Hsin-Yi Chen <[email protected]>, ${COPYRIGHT_YEAR}/" ${POFILE}
@sed -i "s/YEAR-MO-DA HO:MI+ZONE/${REV_DATE}/" ${POFILE}
@sed -i 's/LANGUAGE <[email protected]>/${LANGUAGE_TEAM}/' ${POFILE}
@sed -i 's/SOME DESCRIPTIVE TITLE/${PODESC}/' ${POFILE}
@echo done!