]> granicus.if.org Git - curl/commitdiff
dist: make the hugehelp.c not get regenerated unnecessarily
authorDaniel Stenberg <daniel@haxx.se>
Tue, 13 Jun 2017 20:03:37 +0000 (22:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 14 Jun 2017 14:44:37 +0000 (15:44 +0100)
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
maketgz

index 5ebc7ee982f3561845a4eb54aab58e478b1bdb8e..dc66067cfb02a72e1c61a26dbb3931ab1d0d9166 100644 (file)
@@ -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 a1509819c6d4dc67aa3233ac145652210c3590de..f655ea3651f66be1a7260f5f4a4f3a9392248e1f 100755 (executable)
--- 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