[GRASS-SVN] r40691 - in grass/branches/develbranch_6: lib/init mswindows

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 27 03:07:35 EST 2010


Author: hamish
Date: 2010-01-27 03:07:34 -0500 (Wed, 27 Jan 2010)
New Revision: 40691

Modified:
   grass/branches/develbranch_6/lib/init/init.bat
   grass/branches/develbranch_6/lib/init/init.sh
   grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi
Log:
another attempt at an improved MSys dos prompt

Modified: grass/branches/develbranch_6/lib/init/init.bat
===================================================================
--- grass/branches/develbranch_6/lib/init/init.bat	2010-01-27 05:12:20 UTC (rev 40690)
+++ grass/branches/develbranch_6/lib/init/init.bat	2010-01-27 08:07:34 UTC (rev 40691)
@@ -45,9 +45,11 @@
 set GRASS_PAGER=more
 if "%GRASS_WISH%"=="" set GRASS_WISH=wish.exe
 if "%GRASS_SH%"=="" set GRASS_SH=c:\msys\1.0\bin\sh.exe
+
 rem Should do something with "assoc .html" and ftype here but would require
 rem a new g.manual.bat too so leaving it like this for now...
 if "%GRASS_HTML_BROWSER%"=="" set GRASS_HTML_BROWSER=%SYSTEMDRIVE%/PROGRA~1/INTERN~1/IEXPLORE.EXE
+
 if "%GRASS_PROJSHARE%"=="" set GRASS_PROJSHARE=CONFIG_PROJSHARE
 
 rem Add python scripts to the PATHEXT variable

Modified: grass/branches/develbranch_6/lib/init/init.sh
===================================================================
--- grass/branches/develbranch_6/lib/init/init.sh	2010-01-27 05:12:20 UTC (rev 40690)
+++ grass/branches/develbranch_6/lib/init/init.sh	2010-01-27 08:07:34 UTC (rev 40691)
@@ -983,16 +983,19 @@
     ;;
 
 *)
+    if [ "$MINGW" ] ; then
+	GRASS_BASE_VERSION=`echo "$GRASS_VERSION" | cut -f1,2 -d.`
+	PS1="GRASS $GRASS_BASE_VERSION> "
+	export PS1
 
-    PS1="GRASS $GRASS_VERSION ($LOCATION_NAME):\w > "
-    export PS1
-
-    if [ "$MINGW" ] ; then
 	# "$ETC/run" doesn't work at all???
-        "$SHELL"
+	"$SHELL"
 	rm -rf "$LOCATION/.tmp"/*  # remove gis.m session files from .tmp
     else
-    	"$ETC/run" "$SHELL"
+	PS1="GRASS $GRASS_VERSION ($LOCATION_NAME):\w > "
+	export PS1
+
+	"$ETC/run" "$SHELL"
 	EXIT_VAL=$?
     fi
     ;;

Modified: grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi
===================================================================
--- grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi	2010-01-27 05:12:20 UTC (rev 40690)
+++ grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi	2010-01-27 08:07:34 UTC (rev 40691)
@@ -648,8 +648,6 @@
 	FileWrite $0 'GRASS_PROJSHARE="$INSTALL_DIR\proj"$\r$\n'
 	FileWrite $0 'export GRASS_PROJSHARE$\r$\n'
 	FileWrite $0 '$\r$\n'
-	FileWrite $0 'export PS1="GRASS 6.5> "$\r$\n'
-	FileWrite $0 '$\r$\n'
 	FileWrite $0 'exec "$$GISBASE/etc/Init.sh" "$$@"'
 	FileClose $0
 	done_create_grass_command:



More information about the grass-commit mailing list