[Asterisk-java-cvs] CVS: asterisk-java/xdocs patch.xml,NONE,1.1 navigation.xml,1.3,1.4
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-04-24 14:34:10
|
Update of /cvsroot/asterisk-java/asterisk-java/xdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv586/xdocs Modified Files: navigation.xml Added Files: patch.xml Log Message: Added patch howto --- NEW FILE: patch.xml --- <?xml version="1.0"?> <!-- /* * Copyright 2004-2005 Stefan Reuter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ --> <document> <properties> <author email="srt at users.sourceforge.net">Stefan Reuter</author> <title>How To Create and Submit a Patch</title> </properties> <meta name="keywords" content="Asterisk,asterisk,Java,java,Manager API,FastAGI,AGI"/> <body> <section name="How To Create and Submit a Patch"> <subsection name="Introduction"> <p>A patch is exactly what the word says: a small piece of code used to repair a breach. It is normally a plain text file containing only the differences between the current version of the code and the fixed version.</p> <p>Often patches are also used to submit enhancements.</p> </subsection> <subsection name="Generating a Patch"> <p>The preferred way of creating a patch is to create it against latest CVS. This ensures that the patch works with the latest version of the source code and makes it easier to apply the patch.</p> <p>To generate the patch you need to check out a copy of the source code from CVS. Look a the <a href="cvs-usage.html">CVS Howto</a> for the details.</p> <p>After you have made the changes to the source code and made sure it compiles and works as expected, you can create the patch file using the command <code>cvs diff -u > /path/to/patchfile.patch</code>.</p> <p>It is recommended to include the diff -up line in <code>~/.cvsrc</code>.</p> <p>If you do not have access to CVS you can generate the patch against the latest release.</p> <p>To generate the patch you will need two copies of the source code: one that is unmodified and one containing your changes to the source. Start by downloading the source code of the latest release, extract it and make a copy of the entire source directory. After you have made your changes to one of the source directories and made sure it compiles and works as expected, you can create the patch file using the command <code>diff -ru /path/to/unmodified/source /path/to/modified/source > /path/to/patchfile.patch</code>.</p> </subsection> <subsection name="Sending a Patch"> <p>The preferred way to submit a patch is via the <a href="mail-lists.html">Asterisk-java Developer List</a>. The patch can be reviewed there in public and other suggestions can be discussed.</p> </subsection> </section> </body> </document> Index: navigation.xml =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/xdocs/navigation.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -p -r1.3 -r1.4 --- navigation.xml 11 Mar 2005 23:17:46 -0000 1.3 +++ navigation.xml 24 Apr 2005 14:34:00 -0000 1.4 @@ -27,6 +27,7 @@ <item name="Home" href="index.html"/> <item name="Building with Maven" href="building.html"/> <item name="Mailing Lists" href="mail-lists.html"/> + <item name="Patch Howto" href="patch.html"/> </menu> <menu name="Documentation"> <item name="Tutorial" href="tutorial.html"/> |