From 11c2fb04467520b82f2251629710e6d4a0798700 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 13 Jun 2017 22:03:37 +0200 Subject: dist: make the hugehelp.c not get regenerated unnecessarily The maketgz script now makes sure the generated hugehelp.c file in the tarball is newer than the generated curl.1 man page, so that it doesn't have to get unnecessarily rebuilt first thing in a typical build. It thus also removes the need for perl to build off a plain release tarball. Fixes #1565 --- Makefile.am | 2 +- maketgz | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 5ebc7ee98..dc66067cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -170,7 +170,7 @@ dist-hook: (distit=`find $(srcdir) -name "*.dist" | grep -v ./ares/`; \ for file in $$distit; do \ strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \ - cp $$file $(distdir)$$strip; \ + cp -p $$file $(distdir)$$strip; \ done) html: diff --git a/maketgz b/maketgz index a1509819c..f655ea365 100755 --- a/maketgz +++ b/maketgz @@ -139,6 +139,9 @@ fi echo "update man pages" ./scripts/updatemanpages.pl $version +# make the generated file newer than the man page +touch src/tool_hugehelp.c + ############################################################################ # # Update the IDE files -- cgit v1.2.3