r77766 - /scripts/dpatch2quilt
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sat Jul 23 15:54:31 UTC 2011
Author: gregoa
Date: Sat Jul 23 15:54:30 2011
New Revision: 77766
URL: http://svn.debian.org/wsvn/?sc=1&rev=77766
Log:
add git support
Modified:
scripts/dpatch2quilt
Modified: scripts/dpatch2quilt
URL: http://svn.debian.org/wsvn/scripts/dpatch2quilt?rev=77766&op=diff
==============================================================================
--- scripts/dpatch2quilt (original)
+++ scripts/dpatch2quilt Sat Jul 23 15:54:30 2011
@@ -23,15 +23,24 @@
quilt push
quilt refresh --no-timestamps --no-index --strip-trailing-whitespace -p ab
- svn add debian/patches/$p.patch
+ if [ -d .svn ] ; then
+ svn add debian/patches/$p.patch
+ elif [ -d .git ] ; then
+ git add debian/patches/$p.patch
+ fi
done
quilt pop -a
COUNT_D=$(ls -1 debian/patches/*.dpatch | wc -l)
COUNT_Q=$(ls -1 debian/patches/*.patch | wc -l)
-svn add debian/patches/series
-svn rm debian/patches/00list debian/patches/*.dpatch
+if [ -d .svn ] ; then
+ svn add debian/patches/series
+ svn rm debian/patches/00list debian/patches/*.dpatch
+elif [ -d .git ] ; then
+ git add debian/patches/series
+ git rm debian/patches/00list debian/patches/*.dpatch
+fi
sed -i -e 's;/usr/share/dpatch/dpatch\.make;/usr/share/quilt/quilt.make;' debian/rules
sed -i -e 's;DPATCH_STAMPFN;QUILT_STAMPFN;' debian/rules
More information about the Pkg-perl-cvs-commits
mailing list