aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Murzov2010-07-09 03:32:02 +0400
committerJason Woodward2010-07-09 14:30:40 -0400
commit6017c400f49505d75951eefc957a90d8a7d47e68 (patch)
tree9b2b9e2cb9200f882072be99b02d1b2a7f44e29e
parent08970bcc1e077108f8e5f97469a01b6976c7ea39 (diff)
downloadslapt-get-6017c400f49505d75951eefc957a90d8a7d47e68.tar.gz
Update translations on `make po_file`
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4b00518..70f849e 100644
--- a/Makefile
+++ b/Makefile
@@ -162,10 +162,10 @@ dopkg:
-( cd pkg; /sbin/makepkg -l y -c n ../$(PACKAGE)-$(VERSION)-$(ARCH)-$(RELEASE).tgz )
po_file:
- -grep '_(' src/*.c |cut -f2-255 -d':'|sed -re "s/.*(_\(\".*\"\)).*/\1/" > po/gettext_strings
- -mv -f po/slapt-get.pot po/slapt-get.pot~
- -xgettext -d slapt-get -o po/slapt-get.pot -a -C --no-location po/gettext_strings
- -rm po/gettext_strings
+ -xgettext -o po/slapt-get.pot.new -sC --no-location src/*
+ -if [ ! -f po/slapt-get.pot ]; then mv po/slapt-get.pot.new po/slapt-get.pot; else msgmerge -Us --backup=simple po/slapt-get.pot po/slapt-get.pot.new ; fi
+ -rm po/slapt-get.pot.new
+ -for i in `ls po/ --ignore=slapt-get.pot* --ignore=CVS`; do msgmerge -Us --backup=simple po/$$i po/slapt-get.pot; done
libs: $(OBJS)
touch libs