OSDN Git Service

Update minor changes in LDP 3.68
[linuxjm/LDP_man-pages.git] / Makefile
index 04c0ffe..cde0000 100644 (file)
--- 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 perkamon
+       git commit -m "LDP: Update POT and ja.po to LDP v$(VERSION)" po4a/ stats/ untrans.html
 
 help:
        @echo "Available targets:"