summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Quinson <mquinson@debian.org>2003-06-26 13:42:46 +0000
committerMartin Quinson <mquinson@debian.org>2003-06-26 13:42:46 +0000
commit73c094c3b43fcfc5fdb5856108f08ca45bcb1120 (patch)
tree93e302eaebcfce8765bc1ad8dc5ae6f348cc6b9d
parent6317bc418436bf7538c135fd2f8df6b979fc427f (diff)
downloadquilt-73c094c3b43fcfc5fdb5856108f08ca45bcb1120.tar.gz
Makefile chunk to manage debian packages using quilt
-rw-r--r--debian/debquilt.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/debquilt.mk b/debian/debquilt.mk
new file mode 100644
index 0000000..878558d
--- /dev/null
+++ b/debian/debquilt.mk
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+# Common rules to handle a debian package using the quilt patch utility
+patch:
+ [ -L patches ] || ln -s debian/patches patches
+ quilt push -a
+
+unpatch:
+ if [ -L patches ] ; then \
+ quilt pop -a; \
+ rm patches; \
+ fi
+ rm -rf .pc