gnucash-on-windows master: Make less picky about where it's called from

Geert Janssens gjanssens at
Tue Apr 18 17:39:28 EDT 2017

Updated	 via (commit)
	from (commit)

commit 9974359d0450da9058aa41ca142f5b7d5fa5e667
Author: Geert Janssens <geert at>
Date:   Tue Apr 18 23:39:20 2017 +0200

    Make less picky about where it's called from
    You can now source it from anywhere as long as
    - is still in gnucash-on-windows.git
    - gnucash-on-windows.git is where the bootstrap script originally created it makes some assumptions about other directory locations. If you overrode any
    of these in, this will currently not be picked up and hence
    will not set up the environment properly for direct development.

diff --git a/ b/
index 1cb5c91..70c20e6 100644
--- a/
+++ b/
@@ -26,10 +26,15 @@
-_dirname=`basename $_currdir`
+cd "$(dirname ${BASH_SOURCE[0]})"
+cd "$_savedir"
+_dirname="$(basename $_currdir)"
 if [ $(expr $_dirname : gnucash-on-windows.*) -ne 0 ]; then
-    GLOBAL_UDIR=`dirname $_currdir`
+    GLOBAL_UDIR="$(dirname $_currdir)"
     echo "Source me in gnucash-on-windows so that I can set the right directory."

Summary of changes: | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

More information about the gnucash-changes mailing list