r23774 - gnucash/trunk/packaging/win32 - Win32 tag builds: use existing download directory instead of copying it

Geert Janssens gjanssens at code.gnucash.org
Sun Jan 26 13:57:02 EST 2014


Author: gjanssens
Date: 2014-01-26 13:57:01 -0500 (Sun, 26 Jan 2014)
New Revision: 23774
Trac: http://svn.gnucash.org/trac/changeset/23774

Modified:
   gnucash/trunk/packaging/win32/build_tags_git.sh
Log:
Win32 tag builds: use existing download directory instead of copying it

This saves a lot on disk space

Modified: gnucash/trunk/packaging/win32/build_tags_git.sh
===================================================================
--- gnucash/trunk/packaging/win32/build_tags_git.sh	2014-01-26 11:47:11 UTC (rev 23773)
+++ gnucash/trunk/packaging/win32/build_tags_git.sh	2014-01-26 18:57:01 UTC (rev 23774)
@@ -85,10 +85,6 @@
   rm -fr $tagbasedir
   mkdir -p ${tagdir}
 
-  # Copy the downloads to save time
-  mkdir -p ${tagbasedir}/downloads
-  cp -p $(unix_path ${DOWNLOAD_DIR})/* ${tagbasedir}/downloads
-
   # Check out the tag and setup custom.sh
   qpushd ${tagdir}
   $GIT_CMD clone ${REPOS_URL} repos
@@ -103,6 +99,11 @@
   echo -n 'GLOBAL_DIR=c:\\soft\\gnucash-' >> ${w32pkg}/custom.sh
   echo "${tag}" >> ${w32pkg}/custom.sh
 
+  # Point DOWNLOAD_DIR at the global installation so we can reuse
+  # most of the already downloaded packages
+  echo -n "DOWNLOAD_DIR=" >> ${w32pkg}/custom.sh
+  echo "${DOWNLOAD_DIR}" | sed -e 's/\\/\\\\/g' >> ${w32pkg}/custom.sh
+
   # UPDATE_SOURCES is obsolete, but preserved here to allow the
   # current script to also build older tags, that may still
   # use this parameter.



More information about the gnucash-changes mailing list