From: Ricardo Mones Date: Tue, 7 Aug 2018 22:27:57 +0000 (+0200) Subject: Replace xgettext boilerplate with current texts X-Git-Tag: 1.2.0~12 X-Git-Url: http://git.claws-mail.org/?p=clawsker.git;a=commitdiff_plain;h=bf914d3a0f95d7d259016b04a0a60dc37db65242 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 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