From 5e85ea941ea385dde8ca00442fc429b4ddadf37d Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Sun, 26 Jan 2014 18:57:01 +0000 Subject: [PATCH] Win32 tag builds: use existing download directory instead of copying it This saves a lot on disk space git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23774 57a11ea4-9604-0410-9ed3-97b8803252fd --- packaging/win32/build_tags_git.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packaging/win32/build_tags_git.sh b/packaging/win32/build_tags_git.sh index 8e6fcedbc5..b394b6f3e9 100644 --- a/packaging/win32/build_tags_git.sh +++ b/packaging/win32/build_tags_git.sh @@ -85,10 +85,6 @@ for tag_rev in $tags ; do 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 @@ for tag_rev in $tags ; do 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.