r14816 - gnucash/trunk/packaging/win32 - After installation, try to create a suitable command.com script.

Christian Stimming cstim at cvs.gnucash.org
Thu Sep 7 11:49:51 EDT 2006


Author: cstim
Date: 2006-09-07 11:49:51 -0400 (Thu, 07 Sep 2006)
New Revision: 14816
Trac: http://svn.gnucash.org/trac/changeset/14816

Modified:
   gnucash/trunk/packaging/win32/install.sh
Log:
After installation, try to create a suitable command.com script.

Modified: gnucash/trunk/packaging/win32/install.sh
===================================================================
--- gnucash/trunk/packaging/win32/install.sh	2006-09-07 12:49:39 UTC (rev 14815)
+++ gnucash/trunk/packaging/win32/install.sh	2006-09-07 15:49:51 UTC (rev 14816)
@@ -719,7 +719,17 @@
     # Remove the dependency_libs line from the installed .la files
     # because otherwise loading the modules literally takes hours.
     for A in *.la; do grep -v dependency_libs $A > tmp ; mv  tmp $A; done
+    find . -name '*.a' -exec rm '{}' ';'
     qpopd
+
+    # Create a startup script that works without the msys shell
+    qpushd ${_GNUCASH_WFSDIR}/bin
+    echo "set PATH=${GNUCASH_DIR}\\bin;${GNUCASH_DIR}\\lib\\bin;${GOFFICE_DIR}\\bin;${LIBGSF_DIR}\\bin;${GWRAP_DIR}\\bin;${GNOME_DIR}\\bin;${LIBXML2_DIR}\\bin;${GUILE_DIR}\\bin;${REGEX_DIR}\\bin" > gnucash.bat
+    echo "set GUILE_WARN_DEPRECATED=no" >> gnucash.bat
+    echo "set GNC_MODULE_PATH=${GNUCASH_DIR}\\lib\\gnucash" >> gnucash.bat
+    echo "set GUILE_LOAD_PATH=${GUILE_DIR}\\share\\guile\\site;${GNUCASH_DIR}\\share\\gnucash\\guile-modules;${GNUCASH_DIR}\\share\\gnucash\\scm;%GUILE_LOAD_PATH%" >> gnucash.bat
+    echo "start gnucash-bin" >> gnucash.bat
+    qpopd
 }
 
 function finish() {



More information about the gnucash-changes mailing list