This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
gbs difforig patch
- From: Reini Urban <rurban at x-ray dot at>
- To: Cygwin Apps <cygwin-apps at cygwin dot com>
- Date: Sat, 04 Sep 2004 11:51:30 +0200
- Subject: gbs difforig patch
Attached is a gbs patch for difforig support.
This helps in generating the required patch file from the *same* working
dir, different from the other mkpatch method with two trees.
ChangeLog entry:
2004-09-04 Reini Urban <rurban@x-ray.at>
* templates/generic-build-script (install): Add difforig support
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--- generic-build-script.orig 2004-08-21 13:41:18.705475600 +0100
+++ generic-build-script 2004-09-04 10:46:01.434008000 +0100
@@ -250,6 +250,16 @@
(cd ${instdir} && \
tar cvjf ${bin_pkg} * )
}
+difforig() {
+ ( cd ${srcdir} && \
+ echo "difforig ${FULLPKG} > ${topdir}/${src_patch_name}" 1>&2
+ find . -name '*.orig' -print | sort | while read FILE
+ do
+ NEW="`dirname $FILE`/`basename $FILE .orig`"
+ echo "$NEW" 1>&2
+ diff -ub $FILE $NEW # > ${topdir}/${src_patch_name}
+ done )
+}
mkpatch() {
(cd ${srcdir} && \
find . -name "autom4te.cache" | xargs rm -rf ; \
@@ -334,6 +344,7 @@
strip) strip ; STATUS=$? ;;
package) pkg ; STATUS=$? ;;
pkg) pkg ; STATUS=$? ;;
+ difforig) difforig ; STATUS=$? ;;
mkpatch) mkpatch ; STATUS=$? ;;
src-package) spkg ; STATUS=$? ;;
spkg) spkg ; STATUS=$? ;;