From a878f8a6cfb0d7ce45c43f0c366a779887dacfd9 Mon Sep 17 00:00:00 2001 From: Akihiro MOTOKI Date: Thu, 24 Apr 2014 00:24:46 +0900 Subject: [PATCH] (split) LDP: Fix bug in Makefile upgrade --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04c0ffe5..89fd0c01 100644 --- a/Makefile +++ b/Makefile @@ -135,10 +135,15 @@ upgrade: sh ../perkamon/man-pages/scripts/remove_COLOPHON.sh man?/*.[1-8] git add --all original/ git status original | ../../admin/git2upd > upd.txt - ../../admin/upd_tl.perl translation_list upd.txt `grep "^V = " $(PERKAMON_DIR)/Makefile | awk '{print $$2}'` + $(eval VERSION = $(shell grep "^V = " $(PERKAMON_DIR)/Makefile | awk '{print $$3}')) + ../../admin/upd_tl.perl translation_list upd.txt $(VERSION) mv translation_list.* translation_list $(MAKE) FLAGS="--no-translations -v --force" translate-pages $(MAKE) update-stats + git add translation_list + git commit -m "LDP: Update original to LDP v$(VERSION)" original/ translation_list + git add po4a/ stats/ untrans.html + git commit -m "LDP: Update POT and ja.po to LDP v$(VERSION)" po4a/ stats/ untrans.html help: @echo "Available targets:" -- 2.11.0