help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DragonFlyBSD


From: Emanuel Berg
Subject: Re: DragonFlyBSD
Date: Sat, 26 Feb 2022 17:49:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Samuel Banya wrote:

> I honestly wish there was a list of sane distros that were
> easy to install

There are _tons_ of such Linux distros this day and age ...
Debian and Debian forks (e.g. the Ubuntus) yes but many, many
others as well. The norm is that installing Linux is very
easy today. And why ever wouldn't it be ...

> and had the latest Emacs version available right off the bat
> in their default command line package manager.

That OTOH ... at least my distros (Debian, RPi OS, ev3dev)
aren't like that.

So I install it manually, but that's super easy as well.

I use the functions in this zsh file:

#! /bin/zsh
#
# this file:
#   http://user.it.uu.se/~embe8573/conf/.zsh/install-emacs
#   https://dataswamp.org/~incal/conf/.zsh/install-emacs

export emacs_src=https://git.savannah.gnu.org/git/emacs.git
export src_dir=~/src
export emacs_dir=$src_dir/emacs

emacs-reinstall () {
    emacs-src-reset
    emacs-install
}
alias reinstall-emacs=emacs-reinstall

emacs-install () {
    emacs-install-prepare
    emacs-src-update
    emacs-do-install
}
alias install-emacs=emacs-install

emacs-install-prepare () {
    sudo apt-get -qq update
    sudo apt-get install build-essential debian-goodies libgccjit-10-dev
    sudo apt-get build-dep emacs
}

emacs-src-reset () {
    cd $emacs_dir
    git reset --hard
    git clean -xdf
    git config pull.rebase false
    git pull $emacs_src
}

emacs-src-get () {
    cd $src_dir
    git clone $emacs_src
}

emacs-src-update () {
    cd $emacs_dir
    git fetch
}

emacs-do-install () {
    cd $emacs_dir
    autogen.sh
    configure --with-x-toolkit=no --with-native-compilation
    make
    sudo make install
    emacs --version
}

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]