Win32 build: Add more output for debugging.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22861 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2013-04-01 19:37:31 +00:00
parent ba52d3c9e5
commit 27dc5f3f77
2 changed files with 11 additions and 6 deletions
+8 -6
View File
@@ -77,12 +77,14 @@ fi
if [ ! -d ${_OUTPUT_DIR} ] ; then
echo "Error: _OUTPUT_DIR=${_OUTPUT_DIR} does not exist" >> ${LOGFILE}
fi
if [ ! -f ${_GNUCASH_UDIR}/${SETUP_FILENAME} ] ; then
if [ -f ${_GNUCASH_UDIR}/${SETUP_FILENAME} ] ; then
echo "Successfully created ${SETUP_FILENAME} in ${_GNUCASH_UDIR}" >> ${LOGFILE}
else
echo "Error: File _GNUCASH_UDIR/SETUP_FILENAME = ${_GNUCASH_UDIR}/${SETUP_FILENAME} does not exist" >> ${LOGFILE}
echo "Files in _GNUCASH_UDIR:" >> ${LOGFILE}
ls ${_GNUCASH_UDIR}/* >> ${LOGFILE}
fi
mv ${_GNUCASH_UDIR}/${SETUP_FILENAME} ${_OUTPUT_DIR}
mv ${_GNUCASH_UDIR}/${SETUP_FILENAME} ${_OUTPUT_DIR} >> ${LOGFILE} 2>&1
#
# Verify that PKG_VERSION == $tag, and add to the build log if it's not.
@@ -103,10 +105,10 @@ fi
# If we're running on the build server then upload the files
if [ `hostname` = "gnucash-win32" ]; then
# Small hack to create the $TARGET_DIR on the webserver if it doesn't exist yet
mkdir -p "$_OUTPUT_DIR/$TARGET_DIR"
scp -r "$_OUTPUT_DIR/$TARGET_DIR" upload@code.gnucash.org:public_html/win32
rmdir "$_OUTPUT_DIR/$TARGET_DIR"
mkdir -p "$_OUTPUT_DIR/$TARGET_DIR" >> ${LOGFILE} 2>&1
scp -r "$_OUTPUT_DIR/$TARGET_DIR" upload@code.gnucash.org:public_html/win32 >> ${LOGFILE} 2>&1
rmdir "$_OUTPUT_DIR/$TARGET_DIR" >> ${LOGFILE} 2>&1
# Copy the files to the chosen target directory
scp -p ${_OUTPUT_DIR}/${SETUP_FILENAME} upload@code.gnucash.org:public_html/win32/$TARGET_DIR >> ${LOGFILE} 2>&1
scp -p ${LOGFILE} upload@code.gnucash.org:public_html/win32/$LOG_DIR
scp -p ${_OUTPUT_DIR}/${SETUP_FILENAME} upload@code.gnucash.org:public_html/win32/$TARGET_DIR
fi
+3
View File
@@ -60,15 +60,18 @@ for tag_rev in $tags ; do
tagdir=${tagbasedir}/gnucash
rm -fr $tagbasedir
mkdir -p ${tagdir}
echo "Building tag $tag in $tagbasedir."
# Copy the downloads to save time
mkdir -p ${tagbasedir}/downloads
cp -p $(unix_path ${DOWNLOAD_DIR})/* ${tagbasedir}/downloads
echo "Successfully copied the downloads dir to ${tagbasedir}/downloads"
# Check out the tag and setup custom.sh
svn co -q ${TAG_URL}/${tag} ${tagdir}/repos
w32pkg=${tagdir}/repos/packaging/win32
cp -p "${pkgdir}/custom.sh" ${w32pkg}/custom.sh
echo "Successfully checked out the sources"
# Set the global directory to the tag build
echo -n 'GLOBAL_DIR=c:\\soft\\gnucash-' >> ${w32pkg}/custom.sh