OSDN Git Service

Update perkamon to manpages 3.67
[linuxjm/LDP_man-pages.git] / Makefile
index 0d061e5..cde0000 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -127,8 +127,23 @@ clean-setup:
 upgrade:
        $(MAKE) clean-setup
        $(MAKE) jm-setup
+       cd $(PERKAMON_DIR)/man-pages \
+         && ../../../../admin/JM-orig-upd.sh ../../original \
+         && cp README man-pages-* Changes* ../../original
+       cd original \
+         sed -e 's/\^\\\.SH /^\\.S[Hh] /' ../perkamon/man-pages/scripts/remove_COLOPHON.sh \
+         sh ../perkamon/man-pages/scripts/remove_COLOPHON.sh man?/*.[1-8]
+       git add --all original/
+       git status original | ../../admin/git2upd > upd.txt
+       $(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:"