bin/homeinit: Only build latest Emacs if not on Guix

master
Pierre Neidhardt 2018-03-29 12:23:01 +05:30
parent 2eea27d1ba
commit b6831f2049
1 changed files with 30 additions and 27 deletions

View File

@ -89,6 +89,8 @@ lnn "$SOURCEDIR/bookmarks/quickmarks" "$XDG_CONFIG_HOME/qutebrowser/"
echo "==> 'projects' folder"
mkdir -pv "$HOME/projects"
## Only build latest Emacs if not on Guix.
if ! command -v guix >/dev/null 2>&1; then
if ! command -v emacs >/dev/null 2>&1 || \
[ $(emacs --quick --batch --eval '(message "%s" emacs-major-version)' 2>&1) -lt 26 ]; then
pushd "$HOME/projects"
@ -118,6 +120,7 @@ if ! command -v emacs >/dev/null 2>&1 || \
popd
sudo make install
fi
fi
if command -v emacs >/dev/null 2>&1; then
mkdir -pv "$HOME/.cache/emacs/"