Reini Urban schrieb:
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.

Sorry, the BASEPKG was missing from the diff paths. attached is the better version.

ChangeLog entry:

2004-09-04 Reini Urban <[EMAIL PROTECTED]>

    * 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 19:14:43.592242400 +0100
@@ -250,6 +250,16 @@
   (cd ${instdir} && \
   tar cvjf ${bin_pkg} * )
 }
+difforig() {
+  (cd ${topdir} && \
+  echo "difforig ${FULLPKG} > ${topdir}/${src_patch_name}" 1>&2
+  find ${BASEPKG} -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=$? ;;

Reply via email to