From 049dfbc90f9aea5bc4cd4e02bc9cf4c774ea4f8a Mon Sep 17 00:00:00 2001 From: dgp Date: Wed, 15 Sep 2010 16:55:14 +0000 Subject: * unix/Makefile.in: Revise `make dist` target to tolerate the case of zero bundled packages. --- ChangeLog | 5 +++++ unix/Makefile.in | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b98065a..15eef04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-15 Don Porter + + * unix/Makefile.in: Revise `make dist` target to tolerate the + case of zero bundled packages. + 2010-09-15 Jan Nijtmans * tools/genStubs.tcl [Patch 3034251] backport ttkGenStubs.tcl diff --git a/unix/Makefile.in b/unix/Makefile.in index 2a4985d..37d8f45 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -4,7 +4,7 @@ # "./configure", which is a configuration script generated by the "autoconf" # program (constructs like "@foo@" will get replaced in the actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.304 2010/08/12 00:40:21 hobbs Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.305 2010/09/15 16:55:14 dgp Exp $ VERSION = @TCL_VERSION@ MAJOR_VERSION = @TCL_MAJOR_VERSION@ @@ -1720,6 +1720,7 @@ distclean-packages: dist-packages: configure-packages @rm -rf $(DISTROOT)/pkgs; \ + mkdir -p $(DISTROOT)/pkgs; \ for i in $(PKGS_DIR)/*; do \ if [ -d $$i ]; then \ pkg=`basename $$i`; \ @@ -1985,7 +1986,7 @@ dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tclConfig.h.in $(UNIX_DIR)/tcl.pc.in $(M $(DISTDIR)/libtommath mkdir $(DISTDIR)/pkgs cp $(TOP_DIR)/pkgs/README $(DISTDIR)/pkgs - for i in $(DISTROOT)/pkgs/*.tar.gz; do \ + for i in `ls $(DISTROOT)/pkgs/*.tar.gz 2> /dev/null`; do \ tar -C $(DISTDIR)/pkgs -xzf "$$i"; \ done -- cgit v0.12