+
+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:"
+ @echo " translate Generate draft from po files"
+ @echo " translate-<SEC> Generate draft from the specified po file"
+ @echo " release Generate release from po files"
+ @echo ""
+ @echo " update-stats Update per-page trans stats"
+ @echo " clean-stats Remove all caches of per-page trans stats"
+ @echo " postats Display per-po trans stats"
+ @echo " untrans-postats Display per-po trans stats (untrans only)"
+ @echo ""
+ @echo " jm-setup Setup perkamon environment"
+ @echo " clean-setup Clean perkamon environment"