From 63b05dc1e82139b0b4840bb7df22f9aa6e15b0fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pierre=20Balay=C3=A9?= <pierre.balaye@univ-lille.fr>
Date: Sat, 16 May 2020 16:33:38 +0200
Subject: [PATCH] all variable names starts now with mefs

---
 00-run-installers.sh             | 14 +++++++-------
 01-create-dirs.sh                |  8 ++++----
 02-chemacs-setup.sh              | 10 +++++-----
 03-clone-spacemacs-develop.sh    |  8 ++++----
 04-multiple-spacemacs-configs.sh | 10 +++++-----
 05-doom-setup.sh                 | 10 +++++-----
 6 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/00-run-installers.sh b/00-run-installers.sh
index 02db3a6..ab2811e 100755
--- a/00-run-installers.sh
+++ b/00-run-installers.sh
@@ -1,16 +1,16 @@
 #!/bin/bash
 
-export ULYS_EMACSDIR="$HOME/test-emacs"
+export mefs_EMACSDIR="$HOME/test-emacs"
 
-ulys_indent_message () {
+mefs_indent_message () {
     echo -e "\033[1;32m#-> $1\033[0m"
 }
 
-export ULYS_THISREPODIR=`pwd`
-export ULYS_CHEMACSDIR="$ULYS_EMACSDIR/chemacs"
-export ULYS_FLAVORDIR="$ULYS_EMACSDIR/flavors"
-export ULYS_CONFIGDIR="$ULYS_FLAVORDIR/configs"
-export -f ulys_indent_message
+export mefs_THISREPODIR=`pwd`
+export mefs_CHEMACSDIR="$mefs_EMACSDIR/chemacs"
+export mefs_FLAVORDIR="$mefs_EMACSDIR/flavors"
+export mefs_CONFIGDIR="$mefs_FLAVORDIR/configs"
+export -f mefs_indent_message
 
 ./01-create-dirs.sh
 ./02-chemacs-setup.sh
diff --git a/01-create-dirs.sh b/01-create-dirs.sh
index de1d19b..00d027a 100755
--- a/01-create-dirs.sh
+++ b/01-create-dirs.sh
@@ -1,8 +1,8 @@
 #!/bin/bash
 
-ulys_indent_message "Directory tree creation..."
+mefs_indent_message "Directory tree creation..."
 
-mkdir -p $ULYS_EMACSDIR/sources
-mkdir -p $ULYS_EMACSDIR/flavors/
-ln -sf $ULYS_THISREPODIR/configs $ULYS_EMACSDIR/flavors/
+mkdir -p $mefs_EMACSDIR/sources
+mkdir -p $mefs_EMACSDIR/flavors/
+ln -sf $mefs_THISREPODIR/configs $mefs_EMACSDIR/flavors/
 
diff --git a/02-chemacs-setup.sh b/02-chemacs-setup.sh
index 82f6c88..7a9c63f 100755
--- a/02-chemacs-setup.sh
+++ b/02-chemacs-setup.sh
@@ -1,10 +1,10 @@
 #!/bin/bash
 
-ulys_indent_message "Chemacs setup..."
+mefs_indent_message "Chemacs setup..."
 
-[ -d $ULYS_CHEMACSDIR ] ||
-    git clone https://github.com/plexus/chemacs.git $ULYS_CHEMACSDIR
+[ -d $mefs_CHEMACSDIR ] ||
+    git clone https://github.com/plexus/chemacs.git $mefs_CHEMACSDIR
 
-$ULYS_CHEMACSDIR/install.sh
+$mefs_CHEMACSDIR/install.sh
 
-ln -sf $ULYS_THISREPODIR/dot.emacs-profiles.el $HOME/.emacs-profiles.el
+ln -sf $mefs_THISREPODIR/dot.emacs-profiles.el $HOME/.emacs-profiles.el
diff --git a/03-clone-spacemacs-develop.sh b/03-clone-spacemacs-develop.sh
index a4a03cd..98f7778 100755
--- a/03-clone-spacemacs-develop.sh
+++ b/03-clone-spacemacs-develop.sh
@@ -1,9 +1,9 @@
 #!/bin/bash
 
-ulys_indent_message "Cloning spacemacs repo..."
+mefs_indent_message "Cloning spacemacs repo..."
 
-[ -d $ULYS_FLAVORDIR/spacemacs-develop ] ||
-    git clone https://github.com/syl20bnr/spacemacs $ULYS_FLAVORDIR/spacemacs-develop
+[ -d $mefs_FLAVORDIR/spacemacs-develop ] ||
+    git clone https://github.com/syl20bnr/spacemacs $mefs_FLAVORDIR/spacemacs-develop
 
-cd $ULYS_FLAVORDIR/spacemacs-develop
+cd $mefs_FLAVORDIR/spacemacs-develop
 git checkout develop
diff --git a/04-multiple-spacemacs-configs.sh b/04-multiple-spacemacs-configs.sh
index 2d664b1..69caf15 100755
--- a/04-multiple-spacemacs-configs.sh
+++ b/04-multiple-spacemacs-configs.sh
@@ -1,10 +1,10 @@
 #!/bin/bash
 
-ULYS_CONFIGS=$(ls $ULYS_CONFIGDIR | grep spacemacs)
+mefs_CONFIGS=$(ls $mefs_CONFIGDIR | grep spacemacs)
 
-for conf in $ULYS_CONFIGS
+for conf in $mefs_CONFIGS
 do
-    ulys_indent_message "Creating dir for $conf"
-    [ -d ${ULYS_FLAVORDIR}/${conf} ] ||
-        cp -r $ULYS_FLAVORDIR/spacemacs-develop ${ULYS_FLAVORDIR}/${conf}
+    mefs_indent_message "Creating dir for $conf"
+    [ -d ${mefs_FLAVORDIR}/${conf} ] ||
+        cp -r $mefs_FLAVORDIR/spacemacs-develop ${mefs_FLAVORDIR}/${conf}
 done
diff --git a/05-doom-setup.sh b/05-doom-setup.sh
index 103164d..537c967 100755
--- a/05-doom-setup.sh
+++ b/05-doom-setup.sh
@@ -1,14 +1,14 @@
 #!/bin/bash
 
-ULYS_FLAVORDOOM=$ULYS_FLAVORDIR/doom
+mefs_FLAVORDOOM=$mefs_FLAVORDIR/doom
 
-if [ ! -d $ULYS_FLAVORDOOM ]
+if [ ! -d $mefs_FLAVORDOOM ]
 then
- git clone https://github.com/hlissner/doom-emacs $ULYS_FLAVORDOOM
+ git clone https://github.com/hlissner/doom-emacs $mefs_FLAVORDOOM
 
- export DOOMDIR=$ULYS_CONFIGDIR/doom
+ export DOOMDIR=$mefs_CONFIGDIR/doom
 
- cd $ULYS_FLAVORDOOM
+ cd $mefs_FLAVORDOOM
  ./bin/doom install
 
 fi
-- 
GitLab