gnucash-on-windows master: Ensure that devrc.sh is sourced in gnucash-on-windows.
John Ralls
jralls at code.gnucash.org
Thu Dec 31 13:23:17 EST 2015
Updated via https://github.com/Gnucash/gnucash-on-windows/commit/b1a8dfca (commit)
from https://github.com/Gnucash/gnucash-on-windows/commit/f028f410 (commit)
commit b1a8dfcaa515ddbe1ccba15563c0cb92c24434d2
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Dec 31 10:25:01 2015 -0800
Ensure that devrc.sh is sourced in gnucash-on-windows.
diff --git a/devrc.sh b/devrc.sh
index b1bdcda..3ed718a 100644
--- a/devrc.sh
+++ b/devrc.sh
@@ -26,7 +26,14 @@
export OLDPATH=$PATH
-GLOBAL_UDIR="/c/gcdev"
+_currdir=`pwd`
+_dirname=`basename $_currdir`
+if [ $(expr $_dirname : gnucash-on-windows.*) -ne 0 ]; then
+ GLOBAL_UDIR=`dirname $_currdir`
+else
+ echo "Source me in gnucash-on-windows so that I can set the right directory."
+ exit
+fi
AQBANKING_UDIR=$GLOBAL_UDIR/aqbanking
CMAKE_UDIR=$GLOBAL_UDIR/cmake
GWENHYWFAR_UDIR=$GLOBAL_UDIR/gwenhywfar
Summary of changes:
devrc.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list