X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/862caff2a9d66ec7b79f03cf769a53ba0fdc3539..9a61f3050a0b0df45671237e6451a5fe8295072b:/Makefile.PL diff --git a/Makefile.PL b/Makefile.PL index 93f9e89e2..b6d1bd292 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -47,6 +47,24 @@ extra_build: ikiwiki.out ikiwiki.setup docwiki docwiki: ikiwiki.out $(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.out -libdir . -setup docwiki.setup -refresh +basewikipo: ikiwiki.out + # copy all the files we want to translate into the + # po/underlays scrdir. + for file in `find underlays -follow -name \*.mdwn`; do \ + install -d po/$$(dirname $$file); \ + cp -aL $$file po/$$file 2>/dev/null || \ + install -m 644 $$file po/$$file; \ + done + install -d po/underlays/directives/ikiwiki/directive + for file in doc/ikiwiki/directive/*; do \ + if [ -f "$$file" ]; then \ + install -m 644 $$file po/underlays/directives/ikiwiki/directive; \ + fi \ + done + $(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.out -libdir . -setup basewikipo.setup -refresh + rm -rf po/html po/underlays/.ikiwiki + find po/underlays -name \*.mdwn | xargs rm -f + extra_clean: rm -rf html doc/.ikiwiki rm -f *.man ikiwiki.out ikiwiki.setup plugins/*.pyc