#!/bin/sh exit TMP=/tmp CWD=$( pwd ) PKG=cc65-2.13.3 cd $TMP/$PKG || exit 1 # Clean old build make -C src -f make/gcc.mak zap make -C libsrc zap rm -f libsrc/geos/devel/*.joy rm -f libsrc/geos/devel/*.tgi rm -f libsrc/geos/devel/*.emd make -C doc zap make -C samples zap rm -f `find . -name "*~"` rm -f `find . -name "*.orig"` cd $TMP/$PKG.orig || exit 1 # Clean old build make -C src -f make/gcc.mak zap make -C libsrc zap make -C doc zap make -C samples zap rm -f `find . -name "*~"` rm -f `find . -name "*.orig"` cd $TMP diff -ub -r -N $PKG.orig $PKG > $CWD/ec65k.patch.new