RE: [AD] I've made a modification to the set_gfx_mode function |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> I understand that if I want my modification to be included, I
> should submit
> a patch. How could I create a patch file and where should I submit it?
You need to have two Allegro trees (or two sets of the files you altered).
You also need to have diff (the program that generates the patch). If you
have a MS system, you'll have to fetch this as you probably won't have it
yet: it can usually be found at the same place as DJGPP.
Then you cd to the dir where you have these two installs (a clean one,
preferrably from the latest CVS sources, and the other with your mods).
Then you issue:
diff -U 3 allegro_old/ allegro_modified/ > foo.diff
And that's it.
-U 3 is to provide some (3) lines of context, useful to apply patches even
if the same area was modified by someone else.
If the patch is big, preferrably post a URL to it, or put it in your mail.
The nice thing about patches is that you can apply a patch in a message,
and it will automagically skip the human text to find only the patch data
and apply it :)
--
Lyrian