~piersharding/udi/master-udi

« back to all changes in this revision

Viewing changes to tools/po/Makefile

  • Committer: Piers Harding
  • Date: 2011-10-02 21:27:04 UTC
  • mfrom: (151.1.63)
  • Revision ID: git-v1:a3e8fccd857706bbe9f37a05061ddc2e2d0b8143
Merge branch 'master' into test-master-merge

Conflicts:
        lib/ds_ldap_pla.php
        lib/page.php

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# all-merge-pot merge last POT with each current translations
17
17
 
18
18
LOCALEDIR = ../../locale
19
 
TEMPLATEFILES=`find ../../templates -iname *xml -exec echo -m {} \;`
20
 
EXPORTFILE = $(shell echo $${EXPORTFILE:-/tmp/launchpad-export.tgz})
 
19
TEMPLATEFILES=`find ../../templates -iname *xml -exec echo -m {} \;|grep -v /test_|grep -v /custom_`
 
20
EXPORTFILE = $(shell echo $${EXPORTFILE:-/tmp/launchpad-export.tar.gz})
21
21
 
22
22
all:
23
23
        @echo Please, specify a target [pot, xml-pot, all-mo, all-merge, all-merge-pot, launchpad-export]
58
58
        rmdir $(LOCALEDIR)/phpldapadmin
59
59
 
60
60
launchpad-export: launchpad-extract all-mo
 
61
 
 
62
launchpad-import:
 
63
        @[ -d /tmp/pla ] && rmdir /tmp/pla
 
64
        @mkdir /tmp/pla
 
65
        @for i in $(LOCALEDIR)/*/LC_MESSAGES/messages.po; do echo $$i; x=$${i##$(LOCALEDIR)/}; x=$${x/_??\/LC_MESSAGES\/messages/}; [ ! -e /tmp/pla/$$x ] && cp $$i /tmp/pla/$$x || echo "$$x Already exists!"; done