From: Manoj Srivastava Date: Sun, 13 Sep 2009 21:29:09 +0000 (-0500) Subject: [bug545548-srivasta]: Arrange to regenerate derived files from org source X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=95ddf5e1099b76850b900f6cb9f9eb992424cae2;p=debian%2Fdebian-policy.git [bug545548-srivasta]: Arrange to regenerate derived files from org source For machines without a newer Emacs, this has no effect, but if a new Emacs is present, the .txt and .html files shall be regenerated if the org file is newer. Signed-off-by: Manoj Srivastava --- diff --git a/Makefile b/Makefile index d9031ff..c3e6b49 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,8 @@ ifneq (,$(strip $(HAVE_ORG_EMACS))) %.txt: %.org $(EMACS) --batch -Q -l ./README-css.el -l org --visit $^ \ --funcall org-export-as-ascii >/dev/null 2>&1 + test "$@" != "README.txt" || \ + perl -pli -e 's,./Process.org,Process.txt,g' $@ %.html: %.org $(EMACS) --batch -Q -l ./README-css.el -l org --visit $^ \ --funcall org-export-as-html-batch >/dev/null 2>&1 diff --git a/README.html b/README.html index 765c626..2da20e2 100644 --- a/README.html +++ b/README.html @@ -13,22 +13,19 @@ lang="en" xml:lang="en"> Debian Policy - - + + - - -