From 95ddf5e1099b76850b900f6cb9f9eb992424cae2 Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Sun, 13 Sep 2009 16:29:09 -0500 Subject: [PATCH] [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 --- Makefile | 2 ++ README.html | 38 +++++++++++++++++--------------------- README.org | 15 +++++++-------- README.txt | 25 +++++++++++++++---------- debian/rules | 4 +++- 5 files changed, 44 insertions(+), 40 deletions(-) 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 - - + + - - -