[Commits] [SCM] clawsker branch, master, updated. 1.1.1-9-gbf914d3

mones at claws-mail.org mones at claws-mail.org
Wed Aug 8 00:29:11 CEST 2018


The branch, master has been updated
       via  bf914d3a0f95d7d259016b04a0a60dc37db65242 (commit)
      from  86c980eff7e4bafd1f5e56795a5067404f0f2250 (commit)

Summary of changes:
 po/Makefile |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit bf914d3a0f95d7d259016b04a0a60dc37db65242
Author: Ricardo Mones <ricardo at mones.org>
Date:   Wed Aug 8 00:27:57 2018 +0200

    Replace xgettext boilerplate with current texts

diff --git a/po/Makefile b/po/Makefile
index b117498..eb97074 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -11,6 +11,8 @@
 #
 
 NAME = clawsker
+TITLE = \# Translatable strings for Clawsker
+COPYR = \# Copyright (C) 2007 Ricardo Mones <ricardo at mones.org>
 VERSION ?= $(shell git describe)
 PREFIX ?= /usr/local
 DATADIR = ${PREFIX}/share
@@ -22,13 +24,17 @@ LINGUAS = es fr nl pt_BR sv nb de ca tr da id
 all: build
 
 ${NAME}.pot.0:
-	xgettext ${XG_ARGS} -f ./POTFILES -d ${NAME} -o ./${NAME}.pot.0
+	xgettext ${XG_ARGS} -f ./POTFILES -d ${NAME} -o $@
 
 # remove bogus entry win_title
-update-pot: ${NAME}.pot.0
-	head -17 ./${NAME}.pot.0 > ./${NAME}.pot
-	tail -$(shell expr $(shell wc -l < ./${NAME}.pot.0) - 22 ) ./${NAME}.pot.0 >> ./${NAME}.pot
-	rm -f ./${NAME}.pot.0
+${NAME}.pot.1: ${NAME}.pot.0
+	head -17 $< > $@
+	tail -$(shell expr $(shell wc -l < $<) - 22 ) $< >> $@
+	rm -f $<
+
+update-pot: ${NAME}.pot.1
+	sed 's,^# SOME DESC.*,${TITLE},;s,^# Copyright.*,${COPYR},' < $< > ${NAME}.pot
+	rm -f $<
 
 %.pox: %.po
 	msgmerge -o $@ --previous $< ${NAME}.pot 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Hidden preferences editor for Claws Mail


More information about the Commits mailing list