From: thurston Date: Sat, 18 Apr 2009 17:58:07 +0000 (+0000) Subject: Brought back the dist hook with an improvement. To get around the reconfiguring X-Git-Tag: 2.0_alpha~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46ec45dabc774da2f88d86ddc50bd51849d15461;p=external%2Fragel.git Brought back the dist hook with an improvement. To get around the reconfiguring of a freshly configured dist that is caused by changing the modified time of configure and configure.in, we can use "cp -p" "touch -r" to reset the timestamp of the modified files. Note that "make dist" is a maintainer activity so these don't need to be portable. git-svn-id: http://svn.complang.org/ragel/trunk@800 052ea7fc-9027-0410-9066-f65837a77df0 --- diff --git a/Makefile.am b/Makefile.am index 97bdc8f..e6aa280 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,3 +3,15 @@ SUBDIRS = ragel aapl doc test contrib dist_doc_DATA = ChangeLog +sed_script = 's/build_parsers=yes/build_parsers=no/;s/build_manual=yes/build_manual=no/;' + +configure = $(top_distdir)/configure + +dist-hook: + cp -p $(configure) $(configure).tmp + cp -p $(configure).in $(configure).in.tmp + sed $(sed_script) $(configure).tmp > $(configure) + sed $(sed_script) $(cfgscripcfgscript).in.tmp > $(configure).in + touch -r $(configure).tmp $(configure) + touch -r $(configure).in.tmp $(configure) + rm $(configure).tmp $(configure).in.tmp