]> granicus.if.org Git - curl/commitdiff
Made the dist-hook more generic for adding more files named .dist into the
authorDaniel Stenberg <daniel@haxx.se>
Thu, 30 Oct 2003 12:48:19 +0000 (12:48 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Oct 2003 12:48:19 +0000 (12:48 +0000)
dist archive. Preparing for a new maketgz.

Makefile.am

index a48c323cff088f4d99fc7c6850d5892f65289cbf..ee4149323ac85df1465b5e2bf7df556434194994 100644 (file)
@@ -13,10 +13,14 @@ bin_SCRIPTS = curl-config
 SUBDIRS = lib src
 DIST_SUBDIRS = $(SUBDIRS) tests include packages docs
 
-# create a root makefile in the distribution:
 dist-hook:
        rm -rf $(top_builddir)/tests/log
-       cp $(srcdir)/Makefile.dist $(distdir)/Makefile
+       find $(distdir) -name "*.dist" -exec rm {} \;
+       (distit=`find $(srcdir) -name "*.dist"`; \
+       for file in $$distit; do \
+         strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
+         cp $$file $(distdir)$$strip; \
+       done)
 
 html:
        cd docs; make html