Win32: more automated build from git fixes

- use consistent naming for the final installer executable
- Default to no for UPDATE_SOURCES

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22306 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2012-08-12 19:36:50 +00:00
parent 464e11d1c7
commit e074ec9955
2 changed files with 3 additions and 3 deletions

View File

@ -29,6 +29,8 @@ if [ -z "$BUILD_FROM_TARBALL" ]; then
fi
fi
# only change this to "yes" if you are using install.sh from the outside the repository checkout
set_default UPDATE_SOURCES noyes
if [ "$BUILD_FROM_TARBALL" = "yes" ]; then
UPDATE_SOURCES=no
set_default GNUCASH_DIR "$(wpwd ..\\..)"
@ -36,8 +38,6 @@ if [ "$BUILD_FROM_TARBALL" = "yes" ]; then
# keep this pointing from BUILD_DIR to REPOS_DIR
set_default REL_REPOS_DIR ..
else
# change this to "no" if you are using install.sh from the same repository checkout
set_default UPDATE_SOURCES yes
set_default GNUCASH_DIR $GLOBAL_DIR\\gnucash
set_default REPOS_DIR $GNUCASH_DIR\\repos
# keep this pointing from BUILD_DIR to REPOS_DIR

View File

@ -311,7 +311,7 @@ function dist_finish() {
# And changing output filename
PKG_VERSION=`grep PACKAGE_VERSION ${_BUILD_UDIR}/config.h | cut -d" " -f3 | cut -d\" -f2 `
SVN_REV=`grep GNUCASH_SVN_REV ${_BUILD_UDIR}/src/core-utils/gnc-svninfo.h | cut -d" " -f3 | cut -d\" -f2 `
SETUP_FILENAME="gnucash-${PKG_VERSION}-svn-r${SVN_REV}-setup.exe"
SETUP_FILENAME="gnucash-${PKG_VERSION}-${REPOS_TYPE}-r${SVN_REV}-setup.exe"
qpushd ${_GNUCASH_UDIR}
mv gnucash-${PKG_VERSION}-setup.exe ${SETUP_FILENAME}
qpopd