From f19c9ab34fa9b4b465342ac2b0850a70b355571f Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Thu, 16 Aug 2012 09:37:19 +0000 Subject: [PATCH] Win32 automated build: add note about Windows' restriction on updating files that are in use in every file that can be affected. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22317 57a11ea4-9604-0410-9ed3-97b8803252fd --- packaging/win32/build_tags.sh | 21 ++++++++++++------- packaging/win32/build_tags_git.sh | 15 ++++++++++---- packaging/win32/daily_build.sh | 6 ++++++ packaging/win32/daily_build_git.sh | 15 ++++++++++---- packaging/win32/weekly_build.sh | 32 ++++++++++++++++++++++------- packaging/win32/weekly_build_git.sh | 15 ++++++++++---- 6 files changed, 78 insertions(+), 26 deletions(-) diff --git a/packaging/win32/build_tags.sh b/packaging/win32/build_tags.sh index f529fee9f4..d3ebd2cbb2 100644 --- a/packaging/win32/build_tags.sh +++ b/packaging/win32/build_tags.sh @@ -1,12 +1,19 @@ #!/bin/sh # -# Note: for this script to work, you need to make sure bash can -# find svn on your system. If it's not in the default -# Windows path, you will have to add it yourself, for -# example like this: -# - create a file /etc/profile.d/svn.sh -# - add this line: export PATH=/c/soft/svn/bin:$PATH -# (Use the real path to your svn installation, obviously) +# Notes: +# 1. for this script to work, you need to make sure bash can +# find svn on your system. If it's not in the default +# Windows path, you will have to add it yourself, for +# example like this: +# - create a file /etc/profile.d/svn.sh +# - add this line: export PATH=/c/soft/svn/bin:$PATH +# (Use the real path to your svn installation, obviously) +# +# 2. Should this script change in the source repository, then the +# svn update below will fail due to a limitation in Windows that +# won't allow to change a file that is "in use". So in the rare +# situation this script needs to be updated, you will need to +# run the svn update once yourself. set -e diff --git a/packaging/win32/build_tags_git.sh b/packaging/win32/build_tags_git.sh index d5c2de2eff..1562c4f93d 100644 --- a/packaging/win32/build_tags_git.sh +++ b/packaging/win32/build_tags_git.sh @@ -1,9 +1,16 @@ #!/bin/sh # -# Note: for this script to work, git must have been setup before -# in a way that doesn't conflict with the GnuCash build. -# The easiest way to do so is to run the build once manually -# with a properly set up custom.sh. +# Notes: +# 1. for this script to work, git must have been setup before +# in a way that doesn't conflict with the GnuCash build. +# The easiest way to do so is to run the build once manually +# with a properly set up custom.sh. +# +# 2. Should this script change in the source repository, then the +# git pull below will fail due to a limitation in Windows that +# won't allow to change a file that is "in use". So in the rare +# situation this script needs to be updated, you will need to +# run the git pull once yourself. set -e diff --git a/packaging/win32/daily_build.sh b/packaging/win32/daily_build.sh index c1f92b49c1..a2ce0e2b18 100755 --- a/packaging/win32/daily_build.sh +++ b/packaging/win32/daily_build.sh @@ -19,6 +19,12 @@ # using the old way) # The second invocation is superfluous if this script was called # from within the source code repository. +# +# 3. Should this script change in the source repository, then the +# svn update below will fail due to a limitation in Windows that +# won't allow to change a file that is "in use". So in the rare +# situation this script needs to be updated, you will need to +# run the svn update once yourself. set -e diff --git a/packaging/win32/daily_build_git.sh b/packaging/win32/daily_build_git.sh index af6e533c20..f04d53537c 100644 --- a/packaging/win32/daily_build_git.sh +++ b/packaging/win32/daily_build_git.sh @@ -1,9 +1,16 @@ #!/bin/sh # -# Note: for this script to work, git must have been setup before -# in a way that doesn't conflict with the GnuCash build. -# The easiest way to do so is to run the build once manually -# with a properly set up custom.sh. +# Notes: +# 1. for this script to work, git must have been setup before +# in a way that doesn't conflict with the GnuCash build. +# The easiest way to do so is to run the build once manually +# with a properly set up custom.sh. +# +# 2. Should this script change in the source repository, then the +# git pull below will fail due to a limitation in Windows that +# won't allow to change a file that is "in use". So in the rare +# situation this script needs to be updated, you will need to +# run the git pull once yourself. set -e diff --git a/packaging/win32/weekly_build.sh b/packaging/win32/weekly_build.sh index 8defaad16e..250d310539 100644 --- a/packaging/win32/weekly_build.sh +++ b/packaging/win32/weekly_build.sh @@ -1,12 +1,30 @@ #!/bin/sh # -# Note: for this script to work, you need to make sure bash can -# find svn on your system. If it's not in the default -# Windows path, you will have to add it yourself, for -# example like this: -# - create a file /etc/profile.d/svn.sh -# - add this line: export PATH=/c/soft/svn/bin:$PATH -# (Use the real path to your svn installation, obviously) +# Notes: +# 1. for this script to work, you need to make sure bash can +# find svn on your system. If it's not in the default +# Windows path, you will have to add it yourself, for +# example like this: +# - create a file /etc/profile.d/svn.sh +# - add this line: export PATH=/c/soft/svn/bin:$PATH +# (Use the real path to your svn installation, obviously) +# +# 2. The recommended setup is to call this script from within the +# source code repository (packaging/win32 directory). This is +# different from before, where it was assumed to be called +# from outside the source code repository. To remain some +# compatibility with the old way, svn update is called twice +# - once for the repository (to update all) +# - once for the build scripts (to also update the build scripts +# using the old way) +# The second invocation is superfluous if this script was called +# from within the source code repository. +# +# 3. Should this script change in the source repository, then the +# svn update below will fail due to a limitation in Windows that +# won't allow to change a file that is "in use". So in the rare +# situation this script needs to be updated, you will need to +# run the svn update once yourself. set -e diff --git a/packaging/win32/weekly_build_git.sh b/packaging/win32/weekly_build_git.sh index 2f9a6edcb3..1e1a07abae 100644 --- a/packaging/win32/weekly_build_git.sh +++ b/packaging/win32/weekly_build_git.sh @@ -1,9 +1,16 @@ #!/bin/sh # -# Note: for this script to work, git must have been setup before -# in a way that doesn't conflict with the GnuCash build. -# The easiest way to do so is to run the build once manually -# with a properly set up custom.sh. +# Notes: +# 1. for this script to work, git must have been setup before +# in a way that doesn't conflict with the GnuCash build. +# The easiest way to do so is to run the build once manually +# with a properly set up custom.sh. +# +# 2. Should this script change in the source repository, then the +# git pull below will fail due to a limitation in Windows that +# won't allow to change a file that is "in use". So in the rare +# situation this script needs to be updated, you will need to +# run the git pull once yourself. set -e