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.