2012-09-16 21:53:58 +00:00
|
|
|
Preamble
|
|
|
|
========
|
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
Tmux portable relies on repositories "tmux" and "tmux-openbsd".
|
2012-09-16 21:53:58 +00:00
|
|
|
Here's a description of them:
|
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
* "tmux" is the portable version, the one which contains code for other
|
2012-09-16 21:53:58 +00:00
|
|
|
operating systems, and autotools, etc., which isn't found or needed in the
|
|
|
|
OpenBSD base system.
|
|
|
|
|
|
|
|
* "tmux-openbsd" is the version of tmux in OpenBSD base system which provides
|
|
|
|
the basis of the portable tmux version.
|
|
|
|
|
|
|
|
Note: The "tmux-openbsd" repository is actually handled by "git cvsimport"
|
|
|
|
running at 15 minute intervals, so a commit made to OpenBSD's tmux CVS
|
2013-01-30 23:28:38 +00:00
|
|
|
repository will take at least that long to appear in this git repository.
|
|
|
|
(It might take longer, depending on the CVS mirror used to import the
|
|
|
|
OpenBSD code).
|
2012-09-16 21:53:58 +00:00
|
|
|
|
|
|
|
If you've never used git before, git tracks meta-data about the committer
|
|
|
|
and the author, as part of a commit, hence:
|
|
|
|
|
|
|
|
% git config [--global] user.name "Your name"
|
|
|
|
% git config [--global] user.email "you@yourdomain.com"
|
|
|
|
|
|
|
|
Note that, if you already have this in the global ~/.gitconfig option, then
|
|
|
|
this will be used. Setting this per-repository would involve not using the
|
|
|
|
"--global" flag above. If you wish to use the same credentials always,
|
|
|
|
pass the "--global" option, as shown.
|
|
|
|
|
|
|
|
This is a one-off operation once the repository has been cloned, assuming
|
|
|
|
this information has ever been set before.
|
|
|
|
|
|
|
|
Cloning repositories
|
|
|
|
====================
|
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
This involves having both tmux and tmux-openbsd cloned, as in:
|
2012-09-16 21:53:58 +00:00
|
|
|
|
|
|
|
% cd /some/where/useful
|
2015-06-04 08:26:35 +00:00
|
|
|
% git clone https://github.com/tmux/tmux.git
|
|
|
|
% git clone https://github.com/ThomasAdam/tmux-openbsd.git
|
2012-09-16 21:53:58 +00:00
|
|
|
|
2012-10-13 12:35:35 +00:00
|
|
|
Note that you do not need additional checkouts to manage the sync -- an
|
2012-09-16 21:53:58 +00:00
|
|
|
existing clone of either repositories will suffice. So if you already have
|
|
|
|
these checkouts existing, skip that.
|
|
|
|
|
|
|
|
Adding in git-remotes
|
|
|
|
=====================
|
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
Because the portable "tmux" git repository and the "tmux-openbsd"
|
2013-01-30 23:28:38 +00:00
|
|
|
repository do not inherently share any history between each other, the
|
|
|
|
history has been faked between them. This "faking of history" is something
|
|
|
|
which has to be told to git for the purposes of comparing the "tmux" and
|
|
|
|
"tmux-openbsd" repositories for syncing. To do this, we must reference the
|
2015-06-04 08:26:35 +00:00
|
|
|
clone of the "tmux-openbsd" repository from the "tmux" repository, as
|
2013-01-30 23:28:38 +00:00
|
|
|
shown by the following command:
|
2012-09-16 21:53:58 +00:00
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
% cd /path/to/tmux
|
2012-09-16 21:53:58 +00:00
|
|
|
% git remote add obsd-tmux file:///path/to/tmux-openbsd
|
|
|
|
|
|
|
|
So that now, the remote "obsd-tmux" can be used to reference branches and
|
|
|
|
commits from the "tmux-openbsd" repository, but from the context of the
|
2015-06-04 08:26:35 +00:00
|
|
|
portable "tmux" repository, which makes sense because it's the "tmux"
|
2012-09-16 21:53:58 +00:00
|
|
|
repository which will have the updates applied to them.
|
|
|
|
|
|
|
|
Fetching updates
|
|
|
|
================
|
|
|
|
|
|
|
|
To ensure the latest commits from "tmux-openbsd" can be found from within
|
2015-06-04 08:26:35 +00:00
|
|
|
"tmux", we have to ensure the "master" branch from "tmux-openbsd" is
|
|
|
|
up-to-date first, and then reference that update in "tmux", as in:
|
2012-09-16 21:53:58 +00:00
|
|
|
|
|
|
|
% cd /path/to/tmux-openbsd
|
|
|
|
% git checkout master
|
|
|
|
% git pull
|
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
Then back in "tmux":
|
2012-09-16 21:53:58 +00:00
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
% cd /path/to/tmux
|
|
|
|
% git fetch obsd-tmux
|
2012-09-16 21:53:58 +00:00
|
|
|
|
|
|
|
Creating the necessary branches
|
|
|
|
===============================
|
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
Now that "tmux" can see commits and branches from "tmux-openbsd" by way
|
2013-01-30 23:28:38 +00:00
|
|
|
of the remote name "obsd-tmux", we can now create the master branch from
|
2015-06-04 08:26:35 +00:00
|
|
|
"tmux-openbsd" in the "tmux" repository:
|
2012-09-16 21:53:58 +00:00
|
|
|
|
|
|
|
% git checkout -b obsd-master obsd-tmux/master
|
|
|
|
|
|
|
|
Adding in the fake history points
|
2021-08-14 17:33:13 +00:00
|
|
|
=================================
|
2012-09-16 21:53:58 +00:00
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
To tie both the "master" branch from "tmux" and the "obsd-master"
|
2013-01-30 23:28:38 +00:00
|
|
|
branch from "tmux-openbsd" together, the fake history points added to the
|
2015-06-04 08:26:35 +00:00
|
|
|
"tmux" repository need to be added. To do this, we must add an
|
2013-01-30 23:28:38 +00:00
|
|
|
additional refspec line, as in:
|
2012-09-16 21:53:58 +00:00
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
% cd /path/to/tmux
|
2012-09-16 21:53:58 +00:00
|
|
|
% git config --add remote.origin.fetch '+refs/replace/*:refs/replace/*'
|
2012-09-19 08:49:17 +00:00
|
|
|
% git fetch origin
|
2012-09-16 21:53:58 +00:00
|
|
|
|
|
|
|
Performing the Sync
|
|
|
|
===================
|
|
|
|
|
|
|
|
Make sure the "master" branch is checked out:
|
|
|
|
|
|
|
|
% git checkout master
|
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
The following will show commits on OpenBSD not yet synched with "tmux":
|
2012-09-16 21:53:58 +00:00
|
|
|
|
|
|
|
% git log master..obsd-master
|
|
|
|
|
2012-09-24 17:03:04 +00:00
|
|
|
From there, merge the result in, fixing up any conflicts which might arise.
|
2012-09-16 21:53:58 +00:00
|
|
|
|
2012-09-24 17:03:04 +00:00
|
|
|
% git merge obsd-master
|
2012-09-16 21:53:58 +00:00
|
|
|
|
2016-06-10 11:47:15 +00:00
|
|
|
Then ensure things look correct by BUILDING the result of that sync:
|
2012-09-16 21:53:58 +00:00
|
|
|
|
|
|
|
% make clean && ./autogen.sh && ./configure && make
|
|
|
|
|
|
|
|
Compare the git merge result with what's on origin/master -- that is, check
|
|
|
|
which commits you're about to push:
|
|
|
|
|
|
|
|
% git log origin/master..master
|
|
|
|
|
|
|
|
And if happy:
|
|
|
|
|
|
|
|
% git push origin master
|
|
|
|
|
2014-08-09 19:22:54 +00:00
|
|
|
Keeping an eye on libutil in OpenBSD
|
|
|
|
====================================
|
|
|
|
|
|
|
|
A lot of the compat/ code in tmux comes from libutil, especially imsg.
|
|
|
|
Sometimes the API can change, etc., which might cause interesting problems
|
|
|
|
trying to run the portable version of tmux. It's worth checking
|
|
|
|
periodically for any changes to libutil in OpenBSD and syncing those files
|
|
|
|
to compat/ as and when appropriate.
|
|
|
|
|
2012-09-20 21:59:08 +00:00
|
|
|
Release tmux for next version
|
2012-09-16 21:53:58 +00:00
|
|
|
=============================
|
|
|
|
|
2017-04-20 11:06:39 +00:00
|
|
|
1. Update and commit README and CHANGES. The former should be checked for
|
2012-09-20 21:59:08 +00:00
|
|
|
anything outdated and updated with a list of things that might break
|
|
|
|
upgrades and the latter should mention all the major changes since
|
|
|
|
the last version.
|
|
|
|
|
2017-05-29 07:40:33 +00:00
|
|
|
2. Make sure configure.ac has the new version number.
|
|
|
|
|
|
|
|
3. Tag with:
|
2012-09-20 21:59:08 +00:00
|
|
|
|
2015-06-04 09:35:40 +00:00
|
|
|
% git tag -a 2.X
|
2012-09-20 21:59:08 +00:00
|
|
|
|
2015-06-04 09:35:40 +00:00
|
|
|
Where "2.X" is the next version.
|
2012-09-20 21:59:08 +00:00
|
|
|
|
|
|
|
Push the tag out with:
|
|
|
|
|
2017-04-20 11:06:39 +00:00
|
|
|
% git push --tags
|
2012-09-20 21:59:08 +00:00
|
|
|
|
2017-05-29 07:40:33 +00:00
|
|
|
4. Build the tarball with 'make dist'.
|
2012-09-20 21:59:08 +00:00
|
|
|
|
2017-05-29 07:40:33 +00:00
|
|
|
5. Check the tarball. If it's good, go here to select the tag just pushed:
|
2012-09-20 21:59:08 +00:00
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
https://github.com/tmux/tmux/tags
|
2012-09-20 21:59:08 +00:00
|
|
|
|
2015-06-04 08:26:35 +00:00
|
|
|
Click the "Add release notes", upload the tarball and add a link in the
|
|
|
|
description field to the CHANGES file.
|
2012-09-20 21:59:08 +00:00
|
|
|
|
2017-05-29 07:40:33 +00:00
|
|
|
6. Clone the tmux.github.io repository, and change the RELEASE version in the
|
|
|
|
Makefile. Commit it, and run 'make' to replace %%RELEASE%%. Push the
|
2017-04-20 11:06:39 +00:00
|
|
|
result out.
|
2012-09-20 21:59:08 +00:00
|
|
|
|
2017-05-29 07:40:33 +00:00
|
|
|
7. Change version back to master in configure.ac.
|