bin/homeinit: Only build latest Emacs if not on Guix
parent
2eea27d1ba
commit
b6831f2049
|
@ -89,7 +89,9 @@ lnn "$SOURCEDIR/bookmarks/quickmarks" "$XDG_CONFIG_HOME/qutebrowser/"
|
|||
echo "==> 'projects' folder"
|
||||
mkdir -pv "$HOME/projects"
|
||||
|
||||
if ! command -v emacs >/dev/null 2>&1 || \
|
||||
## 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"
|
||||
git clone https://git.savannah.gnu.org/git/emacs.git
|
||||
|
@ -117,6 +119,7 @@ if ! command -v emacs >/dev/null 2>&1 || \
|
|||
--with-threads
|
||||
popd
|
||||
sudo make install
|
||||
fi
|
||||
fi
|
||||
|
||||
if command -v emacs >/dev/null 2>&1; then
|
||||
|
|
Loading…
Reference in New Issue