mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Auto-generate po/POTFILES
Reduce maintenance costs by auto-generating po/POTFILES in the Makefile. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
9862e533d8
commit
35e6388fad
3 changed files with 6 additions and 60 deletions
|
@ -44,7 +44,10 @@ all: ${MOFILES}
|
|||
lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
|
||||
msgmerge -U --no-location --lang="$$lang" $< aur.pot
|
||||
|
||||
update-pot:
|
||||
POTFILES:
|
||||
find ../web -type f -name '*.php' -printf '%P\n' | sort >POTFILES
|
||||
|
||||
update-pot: POTFILES
|
||||
pkgname=AUR; \
|
||||
pkgver=`sed -n 's/.*"AUR_VERSION", "\(.*\)".*/\1/p' ../web/lib/version.inc.php`; \
|
||||
xgettext --default-domain=aur -L php --keyword=__ --keyword=_n:1,2 \
|
||||
|
@ -57,7 +60,7 @@ update-po:
|
|||
${MAKE} ${UPDATEPOFILES}
|
||||
|
||||
clean:
|
||||
rm -f *.mo *.po\~
|
||||
rm -f *.mo *.po\~ POTFILES
|
||||
|
||||
install: all
|
||||
for l in ${LOCALES}; do mkdir -p ${DESTDIR}${PREFIX}/$$l/LC_MESSAGES/; done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue