2003-06-13 07:40:53 +00:00
|
|
|
Daily Use Guide for using Savannah for lwIP
|
|
|
|
|
|
|
|
Table of Contents:
|
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
1 - Obtaining lwIP from the Git repository
|
|
|
|
2 - Committers/developers Git access using SSH
|
|
|
|
3 - Merging a development branch to master branch
|
2003-06-19 11:50:54 +00:00
|
|
|
4 - How to release lwIP
|
2003-06-13 07:40:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
1 Obtaining lwIP from the Git repository
|
2004-02-05 18:47:55 +00:00
|
|
|
----------------------------------------
|
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
To perform an anonymous Git clone of the master branch (this is where
|
2004-02-05 18:47:55 +00:00
|
|
|
bug fixes and incremental enhancements occur), do this:
|
2015-09-22 19:52:44 +00:00
|
|
|
git clone git://git.savannah.nongnu.org/lwip.git
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2004-02-05 18:47:55 +00:00
|
|
|
Or, obtain a stable branch (updated with bug fixes only) as follows:
|
2015-09-22 19:52:44 +00:00
|
|
|
git clone --branch DEVEL-1_4_1 git://git.savannah.nongnu.org/lwip.git
|
2004-02-05 18:47:55 +00:00
|
|
|
|
|
|
|
Or, obtain a specific (fixed) release as follows:
|
2015-09-22 19:52:44 +00:00
|
|
|
git clone --branch STABLE-1_4_1 git://git.savannah.nongnu.org/lwip.git
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
|
|
|
|
2 Committers/developers Git access using SSH
|
2004-02-07 00:47:15 +00:00
|
|
|
--------------------------------------------
|
|
|
|
|
|
|
|
The Savannah server uses SSH (Secure Shell) protocol 2 authentication and encryption.
|
2015-09-22 19:52:44 +00:00
|
|
|
As such, Git commits to the server occur through a SSH tunnel for project members.
|
2004-02-07 00:47:15 +00:00
|
|
|
To create a SSH2 key pair in UNIX-like environments, do this:
|
2018-02-02 04:29:47 +00:00
|
|
|
ssh-keygen
|
2004-02-07 00:47:15 +00:00
|
|
|
|
|
|
|
Under Windows, a recommended SSH client is "PuTTY", freely available with good
|
|
|
|
documentation and a graphic user interface. Use its key generator.
|
|
|
|
|
2018-02-02 04:29:47 +00:00
|
|
|
Now paste the id_rsa.pub contents into your Savannah account public key list. Wait
|
2004-02-07 00:47:15 +00:00
|
|
|
a while so that Savannah can update its configuration (This can take minutes).
|
|
|
|
|
|
|
|
Try to login using SSH:
|
2015-09-22 19:52:44 +00:00
|
|
|
ssh -v your_login@git.sv.gnu.org
|
2004-02-07 00:47:15 +00:00
|
|
|
|
|
|
|
If it tells you:
|
2015-09-22 19:52:44 +00:00
|
|
|
Linux vcs.savannah.gnu.org 2.6.32-5-xen-686 #1 SMP Wed Jun 17 17:10:03 UTC 2015 i686
|
2004-02-07 00:47:15 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Interactive shell login is not possible for security reasons.
|
|
|
|
VCS commands are allowed.
|
|
|
|
Last login: Tue May 15 23:10:12 2012 from 82.245.102.129
|
|
|
|
You tried to execute:
|
|
|
|
Sorry, you are not allowed to execute that command.
|
|
|
|
Shared connection to git.sv.gnu.org closed.
|
2004-02-07 00:47:15 +00:00
|
|
|
|
|
|
|
then you could login; Savannah refuses to give you a shell - which is OK, as we
|
2015-09-22 19:52:44 +00:00
|
|
|
are allowed to use SSH for Git only. Now, you should be able to do this:
|
|
|
|
git clone your_login@git.sv.gnu.org:/srv/git/lwip.git
|
2004-02-07 00:47:15 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
After which you can edit your local files with bug fixes or new features and
|
|
|
|
commit them. Make sure you know what you are doing when using Git to make
|
2004-02-07 00:47:15 +00:00
|
|
|
changes on the repository. If in doubt, ask on the lwip-members mailing list.
|
2003-06-19 11:50:54 +00:00
|
|
|
|
2005-12-12 09:32:47 +00:00
|
|
|
(If SSH asks about authenticity of the host, you can check the key
|
2015-09-22 19:52:44 +00:00
|
|
|
fingerprint against https://savannah.nongnu.org/git/?group=lwip
|
2005-12-12 09:32:47 +00:00
|
|
|
|
2003-06-19 11:50:54 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
3 - Merging a development branch to master branch
|
|
|
|
-------------------------------------------------
|
2003-11-14 13:17:23 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Merging is a straightforward process in Git. How to merge all changes in a
|
|
|
|
development branch since our last merge from main:
|
2003-06-19 11:50:54 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Checkout the master branch:
|
|
|
|
git checkout master
|
2003-06-19 11:50:54 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Merge the development branch to master:
|
|
|
|
git merge your-development-branch
|
2003-06-19 11:50:54 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Resolve any conflict.
|
2003-06-19 11:50:54 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Commit the merge result.
|
|
|
|
git commit -a
|
2003-11-14 13:17:23 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Push your commits:
|
|
|
|
git push
|
2004-01-20 13:51:54 +00:00
|
|
|
|
2003-06-19 11:50:54 +00:00
|
|
|
|
|
|
|
4 How to release lwIP
|
2003-06-13 07:40:53 +00:00
|
|
|
---------------------
|
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
First, tag the release using Git: (I use release number 1.4.1 throughout
|
|
|
|
this example).
|
|
|
|
git tag -a STABLE-1_4_1
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Share the tag reference by pushing it to remote:
|
|
|
|
git push origin STABLE-1_4_1
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Prepare the release:
|
|
|
|
cp -r lwip lwip-1.4.1
|
|
|
|
rm -rf lwip-1.4.1/.git lwip-1.4.1/.gitattributes
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
Archive the current directory using tar, gzip'd, bzip2'd and zip'd.
|
|
|
|
tar czvf lwip-1.4.1.tar.gz lwip-1.4.1
|
|
|
|
tar cjvf lwip-1.4.1.tar.bz2 lwip-1.4.1
|
|
|
|
zip -r lwip-1.4.1.zip lwip-1.4.1
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2004-08-11 00:15:03 +00:00
|
|
|
Now, sign the archives with a detached GPG binary signature as follows:
|
2015-09-22 19:52:44 +00:00
|
|
|
gpg -b lwip-1.4.1.tar.gz
|
|
|
|
gpg -b lwip-1.4.1.tar.bz2
|
|
|
|
gpg -b lwip-1.4.1.zip
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2004-08-11 00:15:03 +00:00
|
|
|
Upload these files using anonymous FTP:
|
2015-09-22 19:52:44 +00:00
|
|
|
ncftp ftp://savannah.gnu.org/incoming/savannah/lwip
|
|
|
|
ncftp> mput *1.4.1.*
|
2003-06-13 07:40:53 +00:00
|
|
|
|
|
|
|
Additionally, you may post a news item on Savannah, like this:
|
|
|
|
|
2015-09-22 19:52:44 +00:00
|
|
|
A new 1.4.1 release is now available here:
|
|
|
|
http://savannah.nongnu.org/files/?group=lwip&highlight=1.4.1
|
2003-06-13 07:40:53 +00:00
|
|
|
|
|
|
|
You will have to submit this via the user News interface, then approve
|
2015-09-22 19:52:44 +00:00
|
|
|
this via the Administrator News interface.
|