savannah.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. Daily Use Guide for using Savannah for lwIP
  2. Table of Contents:
  3. 1 - Obtaining lwIP from the CVS repository
  4. 2 - Committers/developers CVS access using SSH (to be written)
  5. 3 - Merging from DEVEL branch to main trunk (stable branch)
  6. 4 - How to release lwIP
  7. 1 Obtaining lwIP from the CVS repository
  8. ----------------------------------------
  9. To perform an anonymous CVS checkout of the main trunk (this is where
  10. bug fixes and incremental enhancements occur), do this:
  11. cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/lwip checkout lwip
  12. Or, obtain a stable branch (updated with bug fixes only) as follows:
  13. cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/lwip checkout \
  14. -r STABLE-0_7 -d lwip-0.7 lwip
  15. Or, obtain a specific (fixed) release as follows:
  16. cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/lwip checkout \
  17. -r STABLE-0_7_0 -d lwip-0.7.0 lwip
  18. 3 Committers/developers CVS access using SSH
  19. --------------------------------------------
  20. The Savannah server uses SSH (Secure Shell) protocol 2 authentication and encryption.
  21. As such, CVS commits to the server occur through a SSH tunnel for project members.
  22. To create a SSH2 key pair in UNIX-like environments, do this:
  23. ssh-keygen -t dsa
  24. Under Windows, a recommended SSH client is "PuTTY", freely available with good
  25. documentation and a graphic user interface. Use its key generator.
  26. Now paste the id_dsa.pub contents into your Savannah account public key list. Wait
  27. a while so that Savannah can update its configuration (This can take minutes).
  28. Try to login using SSH:
  29. ssh -v your_login@cvs.sv.gnu.org
  30. If it tells you:
  31. Authenticating with public key "your_key_name"...
  32. Server refused to allocate pty
  33. then you could login; Savannah refuses to give you a shell - which is OK, as we
  34. are allowed to use SSH for CVS only. Now, you should be able to do this:
  35. export CVS_RSH=ssh
  36. cvs -z3 -d:ext:your_login@cvs.sv.gnu.org:/sources/lwip co lwip
  37. after which you can edit your local files with bug fixes or new features and
  38. commit them. Make sure you know what you are doing when using CVS to make
  39. changes on the repository. If in doubt, ask on the lwip-members mailing list.
  40. (If SSH asks about authenticity of the host, you can check the key
  41. fingerprint against http://savannah.nongnu.org/cvs/?group=lwip)
  42. 3 Merging from DEVEL branch to main trunk (stable)
  43. --------------------------------------------------
  44. Merging is a delicate process in CVS and requires the
  45. following disciplined steps in order to prevent conflicts
  46. in the future. Conflicts can be hard to solve!
  47. Merging from branch A to branch B requires that the A branch
  48. has a tag indicating the previous merger. This tag is called
  49. 'merged_from_A_to_B'. After merging, the tag is moved in the
  50. A branch to remember this merger for future merge actions.
  51. IMPORTANT: AFTER COMMITTING A SUCCESFUL MERGE IN THE
  52. REPOSITORY, THE TAG MUST BE SET ON THE SOURCE BRANCH OF THE
  53. MERGE ACTION (REPLACING EXISTING TAGS WITH THE SAME NAME).
  54. Merge all changes in DEVEL since our last merge to main:
  55. In the working copy of the main trunk:
  56. cvs update -P -jmerged_from_DEVEL_to_main -jDEVEL
  57. (This will apply the changes between 'merged_from_DEVEL_to_main'
  58. and 'DEVEL' to your work set of files)
  59. We can now commit the merge result.
  60. cvs commit -R -m "Merged from DEVEL to main."
  61. If this worked out OK, we now move the tag in the DEVEL branch
  62. to this merge point, so we can use this point for future merges:
  63. cvs rtag -F -r DEVEL merged_from_DEVEL_to_main lwip
  64. 4 How to release lwIP
  65. ---------------------
  66. First, checkout a clean copy of the branch to be released. Tag this set with
  67. tag name "STABLE-0_6_3". (I use release number 0.6.3 throughout this example).
  68. Login CVS using pserver authentication, then export a clean copy of the
  69. tagged tree. Export is similar to a checkout, except that the CVS metadata
  70. is not created locally.
  71. export CVS_RSH=ssh
  72. cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/lwip checkout \
  73. -r STABLE-0_6_3 -d lwip-0.6.3 lwip
  74. Archive this directory using tar, gzip'd, bzip2'd and zip'd.
  75. tar czvf lwip-0.6.3.tar.gz lwip-0.6.3
  76. tar cjvf lwip-0.6.3.tar.bz2 lwip-0.6.3
  77. zip -r lwip-0.6.3.zip lwip-0.6.3
  78. Now, sign the archives with a detached GPG binary signature as follows:
  79. gpg -b lwip-0.6.3.tar.gz
  80. gpg -b lwip-0.6.3.tar.bz2
  81. gpg -b lwip-0.6.3.zip
  82. Upload these files using anonymous FTP:
  83. ncftp ftp://savannah.gnu.org/incoming/savannah/lwip
  84. ncftp>mput *0.6.3.*
  85. Additionally, you may post a news item on Savannah, like this:
  86. A new 0.6.3 release is now available here:
  87. http://savannah.nongnu.org/files/?group=lwip&highlight=0.6.3
  88. You will have to submit this via the user News interface, then approve
  89. this via the Administrator News interface.