r22857 - gnucash/trunk/packaging/win32 - Win32 build: Add some more output into log on error conditions.

Christian Stimming cstim at code.gnucash.org
Sun Mar 31 17:28:56 EDT 2013


Author: cstim
Date: 2013-03-31 17:28:56 -0400 (Sun, 31 Mar 2013)
New Revision: 22857
Trac: http://svn.gnucash.org/trac/changeset/22857

Modified:
   gnucash/trunk/packaging/win32/build_package.sh
Log:
Win32 build: Add some more output into log on error conditions.

Modified: gnucash/trunk/packaging/win32/build_package.sh
===================================================================
--- gnucash/trunk/packaging/win32/build_package.sh	2013-03-31 01:20:38 UTC (rev 22856)
+++ gnucash/trunk/packaging/win32/build_package.sh	2013-03-31 21:28:56 UTC (rev 22857)
@@ -74,6 +74,14 @@
 else
   SETUP_FILENAME="gnucash-${PKG_VERSION}-setup.exe"
 fi
+if [ ! -d ${_OUTPUT_DIR} ] ; then
+    echo "Error: _OUTPUT_DIR=${_OUTPUT_DIR} does not exist" >> ${LOGFILE}
+fi
+if [ ! -f ${_GNUCASH_UDIR}/${SETUP_FILENAME} ] ; then
+    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}
 
 #



More information about the gnucash-changes mailing list