How can you make a patch ?

* Put the original AfterStep in some dir, let's say AfterStep-old/

* Put your new source tree in something like AfterStep-new/

* Then run :
diff -N -u -r AfterStep-old/ AfterStep-new/ > yourname-patch
gzip yourname-patch

* People will apply your patch by just running :
tar -zxvf AfterStep-old.tgz
gunzip yourname-patch.gz
patch -p0 < yourname-patch

Guylhem

-----------

Alternatively, you can use makeaspatch and makeasclean, included in the 
tools/ dir of the AS distribution.  makeasclean cleans the AS source 
tree, and makeaspatch makes a patch.

* Put makeaspatch and makeasclean in your path
* Put the original AfterStep source in /usr/src/AfterStep/AfterStep-current
* Put your modified version in /usr/src/AfterStep/AfterStep-devel
* cd /usr/src/AfterStep/AfterStep-devel
* run makeasclean
* cd ..
* Run makeaspatch, which makes the patch as /tmp/patch
* Look at your patch and make sure there aren't any silly mistakes :)
* Check your patch by patching the original code, compiling, and testing
  cd /usr/src/AfterStep/AfterStep-current
  cat /tmp/patch | patch -p1
  # the next line is paranoia only - makeaspatch will have done this already
  makeasclean
  install.script
* gzip the patch
  gzip /tmp/patch
* Send it to the AS maintainers!

Ethan
