all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Getting latest development version
Date: Sat, 26 Nov 2022 19:53:23 +0100	[thread overview]
Message-ID: <87tu2lh7j0.fsf@dataswamp.org> (raw)
In-Reply-To: 1445516721.59866.1669486069971@orville.co-bxl

Hans Lonsdale via Users list for the GNU Emacs text editor wrote:

> Have been trying to get the latest development version of
> emacs, but still getting "emacs-29.0.50".
>
> It would be very much appreciated if the webpages would
> describe in mare detailed and centralised way

Use these commands ...

#! /bin/zsh
#
# this file:
#   https://dataswamp.org/~incal/conf/.zsh/install-emacs

emacs_src=https://git.savannah.gnu.org/git/emacs.git

src_dir=~/src
emacs_dir=${src_dir}/emacs

emacs-version () {
    emacs --version | head -n 1
}

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
    mkdir -p $emacs_dir
}

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

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

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

emacs-install () {
    local reset=$1
    (( ${+reset} )) && emacs-src-reset || emacs-src-update

    local old=$(emacs-version)

    cd $emacs_dir
    autogen.sh
    configure --with-x-toolkit=no --with-native-compilation
    make
    sudo make install

    local new=$(emacs-version)
    echo "version: $old -> $new"
}
alias emacs-upgrade=emacs-install
alias upgrade-emacs=emacs-install

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




  reply	other threads:[~2022-11-26 18:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-26 18:07 Getting latest development version Hans Lonsdale via Users list for the GNU Emacs text editor
2022-11-26 18:53 ` Emanuel Berg [this message]
2022-11-26 18:59 ` Eli Zaretskii
2022-11-26 19:06   ` Hans Lonsdale
2022-11-27  8:13     ` Eli Zaretskii
2022-11-27  8:38     ` Jean Louis
2022-11-27  9:09       ` Eli Zaretskii
2022-11-26 19:10 ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tu2lh7j0.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.