commit bbc5303814018b927156c568928b3e91daf745d6
parent bf5f29dda3d9c58b0e0ca799224b64a54d29d22b
Author: Jaromil <jaromil@dyne.org>
Date:   Mon,  4 Jun 2012 11:29:03 +0200
some reorganization
Diffstat:
4 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/build-gnu.sh b/build/build-gnu.sh
diff --git a/build-osx.sh b/build/build-osx.sh
diff --git a/install.sh b/install.sh
@@ -1,6 +1,6 @@
 #!/usr/bin/env zsh 
 
-# jaromail install script
+# Jaro Mail install script
 #
 # Copyleft (C) 2010-2012 Denis Roio <jaromil@dyne.org>
 #
@@ -43,6 +43,10 @@ ${=mkdir} $MAILDIRS
 ${=mkdir} $WORKDIR
 
 notice "Installing Jaromail in $WORKDIR"
+act "This script will create the ~/Mail folder if it doesn't exist,"
+act "then populate it with default Maildirs and the Jaro Mail binaries."
+act "At last, a shell execution PATH to ~/Mail/jaro/bin will be added"
+act "to your ~/.profile so that you can call 'jaro' from a Terminal."
 
 # install the main jaromail script
 ${=mkdir} ${WORKDIR}/bin
diff --git a/src/jaro b/src/jaro
@@ -1225,6 +1225,7 @@ filter() {
 }
 
 # opens and closes a ramdisk for temporary files 
+# users can do this explicitly between session to speed up operations
 ramdisk() {
     case $OS in
 	GNU)
@@ -1241,13 +1242,14 @@ ramdisk() {
 		    # 2048 is a megabyte here
 		    devsize=$((1024*2*10))
 		    devname=`hdid -nomount ram://${devsize}`
-		    act -n "Mounting 10MB ramdisk: $devname"
+		    act "Mounting 10MB ramdisk: $devname"
 		    diskutil eraseVolume HFS+ JaroTmp `basename $devname` > /dev/null
 		    { test $? != 0 } && {
 			error "Error initializing ramdisk"
 			hdiutil detach `basename $devname`
 			return 1 }
-		    notice "Operation succesful, ramdisk ready on /Volume/JaroTmp"
+		    notice "Operation successful, ramdisk ready on /Volume/JaroTmp"
+		    TMPRAM=1
 		    ;;
 	        close)
 		    devname=`mount | awk '/JaroTmp/ {print $1}'`
@@ -1258,6 +1260,7 @@ ramdisk() {
 		    diskutil unmount /Volumes/JaroTmp > /dev/null
 		    hdiutil detach `basename $devname` > /dev/null
 		    notice "Ramdisk succesfully detached"
+		    TMPRAM=0
 		    ;;
 	    esac
 	    ;;