[gtk-osx: 40/48] Make sure directories for jhbuildrc and jhbuildrc-custom exist.



commit 905440de1d96668c67271aaf868852f3cf6502ff
Author: John Ralls <jralls ceridwen us>
Date:   Fri Apr 19 16:59:11 2019 -0700

    Make sure directories for jhbuildrc and jhbuildrc-custom exist.

 gtk-osx-setup.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/gtk-osx-setup.sh b/gtk-osx-setup.sh
old mode 100644
new mode 100755
index efd60ef..af17e19
--- a/gtk-osx-setup.sh
+++ b/gtk-osx-setup.sh
@@ -231,6 +231,9 @@ fi
 
 if test -z "$jhbuildrc_file" ; then
     echo "Installing jhbuild configuration..."
+    if test ! -d $configdir; then
+        mkdir -p $configdir
+    fi
     curl -ks $BASEURL/jhbuildrc-gtk-osx -o "$config_dir/jhbuildrc"
 fi
 
@@ -239,5 +242,9 @@ if test -z "$JHBUILDRC_CUSTOM"; then
 fi
 
 if test ! -e "$JHBUILDRC_CUSTOM" -a ! -e "$HOME/.jhbuildrc-custom"; then
-   curl -ks $BASEURL/jhbuildrc-gtk-osx-custom-example -o $JHBUILDRC_CUSTOM
+    $JHBUILDRC_CUSTOM_DIR = `dirname $JHBUILDRC_CUSTOM`
+    if test ! -d $JHBUILDRC_CUSTOM_DIR; then
+        mkdir -p $JHBUILDRC_CUSTOM_DIR
+    fi
+    curl -ks $BASEURL/jhbuildrc-gtk-osx-custom-example -o $JHBUILDRC_CUSTOM
 fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]