Difference between revisions of "Creating A Patch"
(add patches address) |
(changed references from cvs to svn) |
||
Line 1: | Line 1: | ||
− | This assumes you have gotten Lazarus from | + | This assumes you have gotten Lazarus from SVN. [[Getting Lazarus#Via SVN| Getting Lazarus Via SVN]] |
Line 7: | Line 7: | ||
'''Instructions For Windows:''' | '''Instructions For Windows:''' | ||
− | We'll assume that you have your | + | We'll assume that you have your SVN checkout of Lazarus in C:\lazarus |
# Open a MS-DOS prompt | # Open a MS-DOS prompt | ||
# c: {press enter} | # c: {press enter} | ||
# cd \lazarus {press enter} | # cd \lazarus {press enter} | ||
− | # | + | # svn diff > mypatch.dif {press enter} |
'''Instructions For Linux/BSD etc:''' | '''Instructions For Linux/BSD etc:''' | ||
− | We'll assume that you have your | + | We'll assume that you have your SVN checkout of Lazarus in $HOME/lazarus |
# Open your favorite Terminal program | # Open your favorite Terminal program | ||
# cd $HOME {press enter} | # cd $HOME {press enter} | ||
# cd lazarus {press enter} | # cd lazarus {press enter} | ||
− | # | + | # svn diff > mypatch.diff {press enter} |
Line 35: | Line 35: | ||
This mostly applies to Windows but could apply for other platforms as well. | This mostly applies to Windows but could apply for other platforms as well. | ||
− | '''You get the error " | + | '''You get the error "svn command not found" or similar.''' |
− | Most probably you do not have | + | Most probably you do not have svn.exe in your PATH environment variable. The following steps should fix this problem: |
# Locate cvs.exe using the Find Files feature of your Start menu. | # Locate cvs.exe using the Find Files feature of your Start menu. | ||
# Once you have located cvs.exe you need to add the directory it is in to your PATH. | # Once you have located cvs.exe you need to add the directory it is in to your PATH. | ||
As an example: From the command prompt type: | As an example: From the command prompt type: | ||
− | set PATH=%PATH%;"C:\Program Files\ | + | set PATH=%PATH%;"C:\Program Files\TortoiseSVN\" |
− | ''Note: Your directory containing | + | ''Note: Your directory containing svn.exe might not be the same on your computer as the one used in this document. It is used here only as an example.'' |
Line 58: | Line 58: | ||
# Choose the "Advanced" tab. | # Choose the "Advanced" tab. | ||
# Click the "Environment Variables" button. | # Click the "Environment Variables" button. | ||
− | # Locate the "Path" line in "System Variables" and add: ;"C:\Program Files\ | + | # Locate the "Path" line in "System Variables" and add: ;"C:\Program Files\TortoiseSVN\" to the end. |
− | ''Note: Your directory containing | + | ''Note: Your directory containing svn.exe might not be the same on your computer as the one used in this document. It is used here only as an example.'' |
Revision as of 02:22, 3 August 2005
This assumes you have gotten Lazarus from SVN. Getting Lazarus Via SVN
Instructions
Open a command or cmd prompt and cd to the directory that the Lazarus source exists.
Instructions For Windows:
We'll assume that you have your SVN checkout of Lazarus in C:\lazarus
- Open a MS-DOS prompt
- c: {press enter}
- cd \lazarus {press enter}
- svn diff > mypatch.dif {press enter}
Instructions For Linux/BSD etc:
We'll assume that you have your SVN checkout of Lazarus in $HOME/lazarus
- Open your favorite Terminal program
- cd $HOME {press enter}
- cd lazarus {press enter}
- svn diff > mypatch.diff {press enter}
Optional: Open the new file created in your Lazarus directory (in this case "mypatch.diff") with your favorite text editor. Remove all the lines starting with "?" and then save it..
Note: I also like to look the file over to see if there is anything in there that shouldn't be.
Now Zip or gzip the file you have created and email it to the Lazarus mailing list (40 kB limit) or the mailbox for patches patch@lazarus.dommelstein.net.
That's all!
Troubleshooting
This mostly applies to Windows but could apply for other platforms as well.
You get the error "svn command not found" or similar. Most probably you do not have svn.exe in your PATH environment variable. The following steps should fix this problem:
- Locate cvs.exe using the Find Files feature of your Start menu.
- Once you have located cvs.exe you need to add the directory it is in to your PATH.
As an example: From the command prompt type:
set PATH=%PATH%;"C:\Program Files\TortoiseSVN\"
Note: Your directory containing svn.exe might not be the same on your computer as the one used in this document. It is used here only as an example.
The following is optional:
To make this permanant
For Windows98 or lower, you can add the line above (or similar) to your C:\autoexec.bat file near the end.
For Windows2000 or greater you can add this directory to your PATH by:
- Right-Clicking on "My Computer"
- Select "Properties"
- Choose the "Advanced" tab.
- Click the "Environment Variables" button.
- Locate the "Path" line in "System Variables" and add: ;"C:\Program Files\TortoiseSVN\" to the end.
Note: Your directory containing svn.exe might not be the same on your computer as the one used in this document. It is used here only as an example.