2003-06-13 07:40:53 +00:00
|
|
|
Daily Use Guide for using Savannah for lwIP
|
|
|
|
|
|
|
|
Table of Contents:
|
|
|
|
|
2004-02-07 00:47:15 +00:00
|
|
|
1 - Obtaining lwIP from the CVS repository
|
2003-06-13 07:40:53 +00:00
|
|
|
2 - Committers/developers CVS access using SSH (to be written)
|
2003-06-19 11:50:54 +00:00
|
|
|
3 - Merging from DEVEL branch to main trunk (stable branch)
|
|
|
|
4 - How to release lwIP
|
2003-06-13 07:40:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2004-02-05 18:47:55 +00:00
|
|
|
1 Obtaining lwIP from the CVS repository
|
|
|
|
----------------------------------------
|
|
|
|
|
|
|
|
To perform an anonymous CVS checkout of the main trunk (this is where
|
|
|
|
bug fixes and incremental enhancements occur), do this:
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2004-01-20 13:51:54 +00:00
|
|
|
export CVS_RSH=ssh
|
|
|
|
cvs -d:ext:anoncvs@subversions.gnu.org:/cvsroot/lwip checkout lwip
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2004-01-20 13:51:54 +00:00
|
|
|
(If SSH asks about authenticity of the host, you can check the key
|
|
|
|
fingerprint against http://savannah.nongnu.org/cvs/?group=lwip)
|
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:
|
|
|
|
cvs -d:ext:anoncvs@subversions.gnu.org:/cvsroot/lwip checkout -r STABLE-0_7 -d lwip-0.7 lwip
|
|
|
|
|
|
|
|
Or, obtain a specific (fixed) release as follows:
|
|
|
|
cvs -d:ext:anoncvs@subversions.gnu.org:/cvsroot/lwip checkout -r STABLE-0_7_0 -d lwip-0.7.0 lwip
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2004-02-05 18:47:55 +00:00
|
|
|
Or, obtain a development branch (considered unstable!) as follows:
|
2004-01-20 13:51:54 +00:00
|
|
|
cvs -d:ext:anoncvs@subversions.gnu.org:/cvsroot/lwip checkout -r DEVEL -d lwip-DEVEL lwip
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2004-02-07 00:47:15 +00:00
|
|
|
3 Committers/developers CVS access using SSH
|
|
|
|
--------------------------------------------
|
|
|
|
|
|
|
|
The Savannah server uses SSH (Secure Shell) protocol 2 authentication and encryption.
|
|
|
|
As such, CVS commits to the server occur through a SSH tunnel for project members.
|
|
|
|
To create a SSH2 key pair in UNIX-like environments, do this:
|
|
|
|
|
|
|
|
ssh-keygen -t dsa
|
|
|
|
|
|
|
|
Under Windows, a recommended SSH client is "PuTTY", freely available with good
|
|
|
|
documentation and a graphic user interface. Use its key generator.
|
|
|
|
|
|
|
|
Now paste the id_dsa.pub contents into your Savannah account public key list. Wait
|
|
|
|
a while so that Savannah can update its configuration (This can take minutes).
|
|
|
|
|
|
|
|
Try to login using SSH:
|
|
|
|
|
|
|
|
ssh -v your_login@subversions.gnu.org
|
|
|
|
|
|
|
|
If it tells you:
|
|
|
|
|
|
|
|
Authenticating with public key "your_key_name"...
|
|
|
|
Server refused to allocate pty
|
|
|
|
|
|
|
|
then you could login; Savannah refuses to give you a shell - which is OK, as we
|
|
|
|
are allowed to use SSH for CVS only. Now, you should be able to do this:
|
|
|
|
|
|
|
|
export CVS_RSH=ssh
|
|
|
|
cvs -d:ext:your_login@subversions.gnu.org:/cvsroot/lwip checkout lwip
|
|
|
|
|
|
|
|
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 CVS to make
|
|
|
|
changes on the repository. If in doubt, ask on the lwip-members mailing list.
|
2003-06-19 11:50:54 +00:00
|
|
|
|
2003-11-14 13:17:23 +00:00
|
|
|
3 Merging from DEVEL branch to main trunk (stable)
|
2004-02-05 18:47:55 +00:00
|
|
|
--------------------------------------------------
|
2003-06-19 11:50:54 +00:00
|
|
|
|
2003-11-14 13:17:23 +00:00
|
|
|
Merging is a delicate process in CVS and requires the
|
|
|
|
following disciplined steps in order to prevent conflicts
|
|
|
|
in the future. Conflicts can be hard to solve!
|
|
|
|
|
|
|
|
Merging from branch A to branch B requires that the A branch
|
|
|
|
has a tag indicating the previous merger. This tag is called
|
|
|
|
'merged_from_A_to_B'. After merging, the tag is moved in the
|
|
|
|
A branch to remember this merger for future merge actions.
|
2003-06-19 11:50:54 +00:00
|
|
|
|
|
|
|
IMPORTANT: AFTER COMMITTING A SUCCESFUL MERGE IN THE
|
2003-11-14 13:17:23 +00:00
|
|
|
REPOSITORY, THE TAG MUST BE SET ON THE SOURCE BRANCH OF THE
|
|
|
|
MERGE ACTION (REPLACING EXISTING TAGS WITH THE SAME NAME).
|
2003-06-19 11:50:54 +00:00
|
|
|
|
|
|
|
Merge all changes in DEVEL since our last merge to main:
|
|
|
|
|
|
|
|
In the working copy of the main trunk:
|
|
|
|
cvs update -P -jmerged_from_DEVEL_to_main -jDEVEL
|
|
|
|
|
2003-11-14 13:17:23 +00:00
|
|
|
(This will apply the changes between 'merged_from_DEVEL_to_main'
|
|
|
|
and 'DEVEL' to your work set of files)
|
|
|
|
|
2004-01-20 13:51:54 +00:00
|
|
|
We can now commit the merge result.
|
|
|
|
cvs commit -R -m "Merged from DEVEL to main."
|
|
|
|
|
2003-11-14 13:17:23 +00:00
|
|
|
If this worked out OK, we now move the tag in the DEVEL branch
|
|
|
|
to this merge point, so we can use this point for future merges:
|
2003-06-19 11:50:54 +00:00
|
|
|
|
2003-11-14 13:17:23 +00:00
|
|
|
cvs rtag -F -r DEVEL merged_from_DEVEL_to_main lwip
|
2003-06-19 11:50:54 +00:00
|
|
|
|
|
|
|
4 How to release lwIP
|
2003-06-13 07:40:53 +00:00
|
|
|
---------------------
|
|
|
|
|
|
|
|
First, checkout a clean copy of the branch to be released. Tag this set with
|
|
|
|
tag name "STABLE-0_6_3". (I use release number 0.6.3 throughout this example).
|
|
|
|
|
|
|
|
Login CVS using pserver authentication, then export a clean copy of the
|
|
|
|
tagged tree. Export is similar to a checkout, except that the CVS metadata
|
|
|
|
is not created locally.
|
|
|
|
|
2004-01-20 13:51:54 +00:00
|
|
|
export CVS_RSH=ssh
|
|
|
|
cvs -d:ext:anoncvs@subversions.gnu.org:/cvsroot/lwip export -r STABLE-0_6_3 -d lwip-0.6.3 lwip
|
2003-06-13 07:40:53 +00:00
|
|
|
|
2003-11-14 13:17:23 +00:00
|
|
|
Archive this directory using tar, gzip'd, bzip2'd and zip'd.
|
2003-06-13 07:40:53 +00:00
|
|
|
|
|
|
|
tar czvf lwip-0.6.3.tar.gz lwip-0.6.3
|
|
|
|
|
|
|
|
First, make a local release directory to work in, I use "lwip-releases":
|
|
|
|
|
|
|
|
mkdir lwip-releases
|
|
|
|
cd lwip-releases
|
|
|
|
|
|
|
|
Now, make a new release by creating a new directory for it (these are
|
|
|
|
Savannah conventions so that it shows up in the Files list real nice):
|
|
|
|
|
|
|
|
mkdir stable.pkg
|
2003-11-14 13:17:23 +00:00
|
|
|
mkdir stable.pkg 0.6.3
|
2003-06-13 07:40:53 +00:00
|
|
|
|
|
|
|
We can now copy the tar archive we made earlier into the release directory:
|
|
|
|
|
2003-11-14 13:17:23 +00:00
|
|
|
cp ../../../lwip-0.6.3.tar.gz .
|
2003-06-13 07:40:53 +00:00
|
|
|
|
|
|
|
Finally, synchronize this directory upwards to Savannah:
|
|
|
|
|
2003-11-14 13:17:23 +00:00
|
|
|
rsync -n -e "ssh -1" -t -u -v -r *.pkg likewise@savannah.nongnu.org:/upload/lwip
|
2003-06-13 07:40:53 +00:00
|
|
|
|
|
|
|
This does a "dry run": no files are modified! After you have confirmed that
|
|
|
|
this is what you intended to do, remove "-n" and actually synchronize for
|
|
|
|
real. The release should now be available here:
|
|
|
|
|
|
|
|
http://savannah.nongnu.org/files/?group=lwip
|
|
|
|
|
|
|
|
---
|
|
|
|
Explanation of rsync options used:
|
|
|
|
|
|
|
|
-t: preserve file timestamps
|
|
|
|
-u: do not overwrite existing files, unless they are older
|
|
|
|
-v: be verbose (long format file attributes)
|
|
|
|
-r: recurse into directories
|
|
|
|
-n: dry-run, do not modify anything.
|
|
|
|
---
|
|
|
|
|
|
|
|
Additionally, you may post a news item on Savannah, like this:
|
|
|
|
|
|
|
|
A new 0.6.3 release is now available here:
|
|
|
|
http://savannah.nongnu.org/files/?group=lwip&highlight=0.6.3
|
|
|
|
|
|
|
|
You will have to submit this via the user News interface, then approve
|
|
|
|
this via the Administrator News interface.
|