[gtk-osx: 43/48] Set config folder to $HOME/.config if not existing, fix minor issue with JHBUILDRC_CUSTOM_DIR.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-osx: 43/48] Set config folder to $HOME/.config if not existing, fix minor issue with JHBUILDRC_CUSTOM_DIR.
- Date: Wed, 15 May 2019 00:00:06 +0000 (UTC)
commit 96d8dd7182189ae55e42bcfd915e9e2ac3e1b948
Author: Blady <blady net orange fr>
Date: Wed May 1 11:29:40 2019 +0200
Set config folder to $HOME/.config if not existing, fix minor issue with JHBUILDRC_CUSTOM_DIR.
gtk-osx-setup.sh | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gtk-osx-setup.sh b/gtk-osx-setup.sh
index af17e19..ba9b7f7 100755
--- a/gtk-osx-setup.sh
+++ b/gtk-osx-setup.sh
@@ -220,6 +220,11 @@ if test -d "$XDG_CONFIG_HOME" ; then
config_dir="$XDG_CONFIG_HOME"
elif test -d "$HOME/.config" ; then
config_dir="$HOME/.config"
+else
+ config_dir="$HOME/.config"
+ if test ! -d $configdir; then
+ mkdir -p $configdir
+ fi
fi
jhbuildrc_file=""
@@ -230,10 +235,7 @@ elif test -e "$HOME/.jhbuildrc" ; then
fi
if test -z "$jhbuildrc_file" ; then
- echo "Installing jhbuild configuration..."
- if test ! -d $configdir; then
- mkdir -p $configdir
- fi
+ echo "Installing jhbuild configuration in $config_dir"
curl -ks $BASEURL/jhbuildrc-gtk-osx -o "$config_dir/jhbuildrc"
fi
@@ -242,7 +244,8 @@ if test -z "$JHBUILDRC_CUSTOM"; then
fi
if test ! -e "$JHBUILDRC_CUSTOM" -a ! -e "$HOME/.jhbuildrc-custom"; then
- $JHBUILDRC_CUSTOM_DIR = `dirname $JHBUILDRC_CUSTOM`
+ JHBUILDRC_CUSTOM_DIR=`dirname $JHBUILDRC_CUSTOM`
+ echo "Installing jhbuild custom configuration in $JHBUILDRC_CUSTOM_DIR"
if test ! -d $JHBUILDRC_CUSTOM_DIR; then
mkdir -p $JHBUILDRC_CUSTOM_DIR
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]