Commit 63b05dc1 authored by Pierre Balaye's avatar Pierre Balaye
Browse files

all variable names starts now with mefs

parent c08d83b4
#!/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
......
#!/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/
#!/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
#!/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
#!/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
#!/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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment