r16989 - gnucash/branches/2.2/packaging/win32 - [r16932] Win32: Add setlocal to batch scripts.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Mar 1 09:50:24 EST 2008


Author: andi5
Date: 2008-03-01 09:50:24 -0500 (Sat, 01 Mar 2008)
New Revision: 16989
Trac: http://svn.gnucash.org/trac/changeset/16989

Modified:
   gnucash/branches/2.2/packaging/win32/gnucash.iss.in
   gnucash/branches/2.2/packaging/win32/install.sh
Log:
[r16932] Win32: Add setlocal to batch scripts.

This avoids cluttering the environment of the caller.


Modified: gnucash/branches/2.2/packaging/win32/gnucash.iss.in
===================================================================
--- gnucash/branches/2.2/packaging/win32/gnucash.iss.in	2008-03-01 14:50:15 UTC (rev 16988)
+++ gnucash/branches/2.2/packaging/win32/gnucash.iss.in	2008-03-01 14:50:24 UTC (rev 16989)
@@ -184,7 +184,8 @@
 
   { Create the gnucash.bat file; #10 is the linefeed character and #13 CR }
   FileName := appdir + '\bin\gnucash.bat' ;
-  FileString := 'chcp ' + ExpandConstant('{cm:LanguageCodePage}') + ''#13#10 ;
+  FileString := 'setlocal'#13#10 ;
+  FileString := FileString + 'chcp ' + ExpandConstant('{cm:LanguageCodePage}') + ''#13#10 ;
   FileString := FileString + 'set PATH=' + appdir + '\bin;' + libdir + ';' + libdir + '\gnucash;%PATH%'#13#10 ;
 
   FileString := FileString + 'set GUILE_WARN_DEPRECATED=no'#13#10 ;

Modified: gnucash/branches/2.2/packaging/win32/install.sh
===================================================================
--- gnucash/branches/2.2/packaging/win32/install.sh	2008-03-01 14:50:15 UTC (rev 16988)
+++ gnucash/branches/2.2/packaging/win32/install.sh	2008-03-01 14:50:24 UTC (rev 16989)
@@ -1032,7 +1032,8 @@
 
     # Create a startup script that works without the msys shell
     qpushd $_INSTALL_UDIR/bin
-        echo "set PATH=${INSTALL_DIR}\\bin;${INSTALL_DIR}\\lib;${INSTALL_DIR}\\lib\\gnucash;${GOFFICE_DIR}\\bin;${LIBGSF_DIR}\\bin;${PCRE_DIR}\\bin;${GNOME_DIR}\\bin;${LIBXML2_DIR}\\bin;${GUILE_DIR}\\bin;${REGEX_DIR}\\bin;${AUTOTOOLS_DIR}\\bin;${AQBANKING_PATH};${LIBOFX_DIR}\\bin;${OPENSP_DIR}\\bin;%PATH%" > gnucash.bat
+        echo "setlocal" > gnucash.bat
+        echo "set PATH=${INSTALL_DIR}\\bin;${INSTALL_DIR}\\lib;${INSTALL_DIR}\\lib\\gnucash;${GOFFICE_DIR}\\bin;${LIBGSF_DIR}\\bin;${PCRE_DIR}\\bin;${GNOME_DIR}\\bin;${LIBXML2_DIR}\\bin;${GUILE_DIR}\\bin;${REGEX_DIR}\\bin;${AUTOTOOLS_DIR}\\bin;${AQBANKING_PATH};${LIBOFX_DIR}\\bin;${OPENSP_DIR}\\bin;%PATH%" >> gnucash.bat
         echo "set GUILE_WARN_DEPRECATED=no" >> gnucash.bat
         echo "set GNC_MODULE_PATH=${INSTALL_DIR}\\lib\\gnucash" >> gnucash.bat
         echo "set GUILE_LOAD_PATH=${INSTALL_DIR}\\share\\gnucash\\guile-modules;${INSTALL_DIR}\\share\\gnucash\\scm;%GUILE_LOAD_PATH%" >> gnucash.bat



More information about the gnucash-changes mailing list