diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2017-07-08 19:04:06 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2017-07-08 19:04:06 +0000 |
commit | 5188862e59430fe63aaab9425a263ae454dc6f61 (patch) | |
tree | 5520e35c6ffa57631368cc83b5382e2734dcd90a /po/makefile.inn | |
parent | 89adb8f96960150c99ca048592754919d6657052 (diff) | |
download | lynx-snapshots-5188862e59430fe63aaab9425a263ae454dc6f61.tar.gz |
snapshot of project "lynx", label v2-8-9dev_15f
Diffstat (limited to 'po/makefile.inn')
-rw-r--r-- | po/makefile.inn | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/po/makefile.inn b/po/makefile.inn index fcbac937..fc53c523 100644 --- a/po/makefile.inn +++ b/po/makefile.inn @@ -1,4 +1,4 @@ -# $LynxId: makefile.inn,v 1.26 2017/07/07 01:22:54 tom Exp $ +# $LynxId: makefile.inn,v 1.28 2017/07/08 19:04:06 tom Exp $ # # Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> @@ -87,9 +87,22 @@ INSTOBJ = $(NLS_TEXTDOMAIN)$(INSTOBJEXT) .po.gmo: @echo "translating $< to $@" - @sed -e s,http://lynx.browser.org/,@HOMEPAGE_URL@,g \ - -e s,http://lynx.isc.org/,@HOMEPAGE_URL@,g $< >pass1.tmp - @ECHO_CC@$(MSGMERGE) -w 132 pass1.tmp $(srcdir)/$(PACKAGE).pot -o pass2.tmp + @$(SHELL) -c 'LC_ALL=C \ + sed -e s,http://lynx.browser.org/,@HOMEPAGE_URL@,g \ + -e s,http://lynx.isc.org/,@HOMEPAGE_URL@,g $< >pass1.tmp;\ + if cmp -s $< pass1.tmp; \ + then \ + echo ...no change made to homepage URL; \ + else \ + echo ...updated homepage URL;\ + fi; \ + if $(MSGMERGE) -w 132 pass1.tmp $(srcdir)/$(PACKAGE).pot -o pass2.tmp; \ + then \ + echo "...merged against $(srcdir)/$(PACKAGE).pot";\ + else \ + echo "...workaround without merging against $(srcdir)/$(PACKAGE).pot";\ + cat $< >pass2.tmp; \ + fi ' @ECHO_CC@file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file pass2.tmp @-rm -f pass*.tmp |