X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=Makefile;h=89fd0c01f2acb629553720e0f2564400dc8112f9;hb=a878f8a6cfb0d7ce45c43f0c366a779887dacfd9;hp=f697816eebd1399d6b418b8f1370378eede437ad;hpb=c08c5c2fcad3965c901ce568ff80b9a1e5b564f1;p=linuxjm%2FLDP_man-pages.git diff --git a/Makefile b/Makefile index f697816e..89fd0c01 100644 --- a/Makefile +++ b/Makefile @@ -91,6 +91,18 @@ untrans-postats: jm-setup jm-setup: stamp-jm-setup stamp-jm-setup: + @# Check perkamon/po4a and JM/po4a + ls -1 $(PERKAMON_DIR)/po4a | sort > _po4a_list_perkamon + ls -1 po4a | sort > _po4a_list_jm + set -e; for d in `comm -13 _po4a_list_perkamon _po4a_list_jm`; do \ + echo $$d; \ + rm -vrf po4a/$$d; \ + done + set -e; for d in `comm -23 _po4a_list_perkamon _po4a_list_jm`; do \ + echo $$d; \ + mkdir -vp po4a/$$d/po; \ + done + rm _po4a_list_jm _po4a_list_perkamon @# Create symlink to po4a/*/po in the top dir. set -e; for d in $(PERKAMON_DIR)/po4a/*; do \ if [ ! -e $$d/po ]; then \ @@ -112,6 +124,27 @@ clean-setup: $(RM) -rf $(PERKAMON_DIR)/build find $(PERKAMON_DIR) -type l | xargs $(RM) +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 + git commit -m "LDP: Update POT and ja.po to LDP v$(VERSION)" po4a/ stats/ untrans.html + help: @echo "Available targets:" @echo " translate Generate draft from po files"