all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phillip Lord <phillip.lord@russet.org.uk>
To: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
Cc: Corwin Brust <corwin@bru.st>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: Windows Binaries Release: was The emacs-28 release branch
Date: Wed, 27 Oct 2021 22:07:31 +0100	[thread overview]
Message-ID: <87v91iqir0.fsf@russet.org.uk> (raw)
In-Reply-To: <864k92uunu.fsf@duenenhof-wilhelm.de> (H. Dieter Wilhelm's message of "Wed, 27 Oct 2021 21:36:37 +0200")

"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:

>> All of the files needed to build the windows binaries are in the
>> main
>> repository, specifically in admin/nt/dist-build.
>>
>> I use a few other launch scripts which the python or shell
>> script. This
>> is just so that I could build release or snapshot builds from the
>> same
>> git checkout (or rather multiple worktrees of the same git repo)
>> with
>> ease.
>
> Please tell me where are the "other launch scripts" located?


They aren't anywhere accessible, because they are a bit specific to my
use.

But for instance, I use one called "build-emacs27.sh" which essentially
looks like:

rm -rf ~/emacs-build/build
rm -rf ~/emacs-build/install

cd emacs-27/admin/nt/dist-build


./build-zips.sh -g
./build-zips.sh


As you can see, it assumes a fairly rigid directory structure which is
defined in admin/nt/dist-build/README-scripts. I keep this script in the
~/emacs-build/git directory below which is ~/emacs-build/git/master
which is the main checkout.

The first part "./build-zips.sh -g" makes a new worktree with the
current release. The second part actually builds the zips.

In my version, I then use rsync to push them from the windows server on
which they are built to a linux box somewhere else. Then I upload them
to the GNU ftp server from there. You don't need to do that but it means
I don't have to set up GPG signing on the windows machine which was a
bit easier.


Then I have "build-27-deps.sh" which again is just a launch script.


set -o errexit
if test -f emacs-src; then
    rsync -r emacs-src emacs-src-cache
fi
rm -rf i686 x86_64 emacs-src
../git/emacs-27/admin/nt/dist-build/build-dep-zips.py -s 2>&1 | tee build-deps.log
cp emacs-27* ~/emacs-upload




> I don't understand, among other things, where variables like $VERSION
> in nt/dist-build/build-zips.sh are defined.


Yeah, this is a little bit hairy I am afraid, because the number of use
cases I wanted to support increased over time. Unless you set it
explicitly (which you don't normally need to do) VERSION is set by
hacking it out of configure.ac in this part of the script.


## ACTUAL_VERSION is the version declared by emacs
if [ -z $ACTUAL_VERSION ];
then
    ACTUAL_VERSION=`
  sed -n 's/^AC_INIT(GNU Emacs,[	 ]*\([^	 ,)]*\).*/\1/p' < ../../../configure.ac
`
fi


I can't remember when I used explicit versions. Probably if you want to
build a snapshot from both from the "master" branch and from the release
branch. You might want to do that, or you might not. I don't know how
many people use the snapshot builds, although they were a useful way of
getting testing.

The documentation on build-zips.sh and build-deps.py is poor (sorry!). I
will try and update it, and give some explanation for some of the fairly
obscure variable names (I can't for the life of me remember what the
"OF" in "OF_VERSION" stands for).

Phil




  reply	other threads:[~2021-10-27 21:07 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 18:30 The emacs-28 release branch has been created Eli Zaretskii
2021-10-02 15:58 ` Windows Binaries Release: was The emacs-28 release branch Phillip Lord
2021-10-03 10:53   ` Po Lu
2021-10-04 19:04     ` Phillip Lord
2021-10-16 20:24       ` Konstantin Kharlamov
2021-10-17  0:43         ` Po Lu
2021-10-17 13:45           ` Konstantin Kharlamov
2021-10-20 15:26         ` Phillip Lord
2021-10-03 11:22   ` Corwin Brust
2021-10-04 19:05     ` Phillip Lord
2021-10-16 10:03       ` H. Dieter Wilhelm
2021-10-16 13:31         ` Corwin Brust
2021-10-16 16:01           ` H. Dieter Wilhelm
2021-10-20 15:24             ` Phillip Lord
2021-10-20 18:36               ` H. Dieter Wilhelm
2021-10-27 19:36               ` H. Dieter Wilhelm
2021-10-27 21:07                 ` Phillip Lord [this message]
2021-11-01 20:47                   ` H. Dieter Wilhelm
2021-11-01 21:06                     ` Óscar Fuentes
2021-11-02 11:16                       ` Eshell requires execute permission on Win10, was " H. Dieter Wilhelm
2021-11-02 14:37                         ` Óscar Fuentes
2021-11-02 18:57                           ` MinGW Sources, was: Windows Binaries Release H. Dieter Wilhelm
2021-11-02 19:07                             ` Óscar Fuentes
2021-11-04 17:51                               ` H. Dieter Wilhelm
2021-11-08 22:27                                 ` Phillip Lord
2021-11-09 12:25                                   ` Eli Zaretskii
2021-11-09 14:32                                     ` Phillip Lord
2021-11-02 10:47                     ` Windows Binaries Release: was The emacs-28 release branch Phillip Lord
2021-11-02 12:05                       ` H. Dieter Wilhelm
2021-10-20 15:16           ` Phillip Lord
2021-10-21  0:13             ` Corwin Brust
2021-10-27 21:11               ` Phillip Lord
2021-10-03  1:35 ` The emacs-28 release branch has been created Ken Brown
2021-10-03  6:53   ` Andreas Schwab
2021-10-03  9:27   ` Eli Zaretskii
2021-10-03 15:01     ` Ken Brown
2021-10-03 15:17       ` Eli Zaretskii
2021-10-03 15:34         ` Ken Brown
2021-10-03 16:11           ` Eli Zaretskii
2021-10-03 17:14             ` Ken Brown
2021-10-03 17:33               ` Eli Zaretskii
2021-10-03 17:49                 ` Eli Zaretskii
2021-10-03 17:56                 ` Ken Brown
2021-10-03 18:03                   ` Eli Zaretskii
2021-10-03 19:20                   ` Eli Zaretskii
2021-10-03 19:42                     ` Eli Zaretskii
2021-10-03 19:45                     ` Ken Brown
2021-10-03 21:21                       ` Ken Brown
2021-10-03 22:40                         ` Ken Brown
2021-10-04 18:51                           ` Eli Zaretskii
2021-10-04 13:31                         ` Ken Brown
2021-10-04 14:25                           ` Eli Zaretskii
2021-10-04 14:39                             ` Eli Zaretskii
2021-10-04 14:45                               ` Andrea Corallo via Emacs development discussions.
2021-10-04 14:54                                 ` Eli Zaretskii
2021-10-04 15:13                                   ` Andrea Corallo via Emacs development discussions.
2021-10-04 16:15                                   ` Andrea Corallo via Emacs development discussions.
2021-10-04 16:58                                     ` Eli Zaretskii
2021-10-04 19:38                                       ` Andrea Corallo via Emacs development discussions.
2021-10-04 19:40                                         ` Andrea Corallo via Emacs development discussions.
2021-10-04 19:54                                           ` Eli Zaretskii
2021-10-04 21:58                                           ` Ken Brown
2021-10-05 11:43                                         ` Eli Zaretskii
2021-10-05 15:43                                           ` Andrea Corallo via Emacs development discussions.
2021-10-05 11:29                                     ` Eli Zaretskii
2021-10-05 15:37                                       ` Andrea Corallo via Emacs development discussions.
2021-10-05 16:14                                         ` Eli Zaretskii
2021-10-05 16:52                                           ` Andrea Corallo via Emacs development discussions.
2021-10-05 17:12                                             ` Eli Zaretskii
2021-10-04 11:37                       ` Eli Zaretskii
2021-10-04 13:11                         ` Ken Brown
2021-10-04 13:34                           ` Eli Zaretskii

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=87v91iqir0.fsf@russet.org.uk \
    --to=phillip.lord@russet.org.uk \
    --cc=corwin@bru.st \
    --cc=dieter@duenenhof-wilhelm.de \
    --cc=emacs-devel@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.