chiark / gitweb /
Provide new tg2quilt target tg-cleanexport to recreate debian/patches.
authormartin f. krafft <madduck@debian.org>
Wed, 19 Nov 2008 16:59:42 +0000 (17:59 +0100)
committermartin f. krafft <madduck@debian.org>
Wed, 19 Nov 2008 16:59:54 +0000 (17:59 +0100)
debian/HOWTO-tg2quilt
debian/changelog
debian/tg2quilt.mk

index 3defa5141bfd4556cc6c57d3d3272d6459ec1ac9..629a5658de9711b2334b97be2f7db6b24c95c895 100644 (file)
@@ -93,7 +93,7 @@ directory. This can conveniently become the branch from which you build:
 
 1. git checkout build
 2. git merge master
 
 1. git checkout build
 2. git merge master
-3. ./debian/rules tg-export
+3. ./debian/rules tg-cleanexport
 4. git add debian/patches
 5. git commit -m'preparing $VERSION'
 6. build, test, upload, tag ('debian/topgit-$VERSION')
 4. git add debian/patches
 5. git commit -m'preparing $VERSION'
 6. build, test, upload, tag ('debian/topgit-$VERSION')
index 5d0d9549dde2d985e1036bf9e6ba8efa06e25dad..8ffd0a6f18112ecb82b79c04b8631cefa2c1dbd8 100644 (file)
@@ -1,3 +1,10 @@
+topgit (0.5-2) unstable; urgency=low
+
+  * Provide new tg2quilt target tg-cleanexport, which recreates debian/patches
+    in one step.
+
+ -- martin f. krafft <madduck@debian.org>  Wed, 19 Nov 2008 17:58:45 +0100
+
 topgit (0.5-1) unstable; urgency=low
 
   * New upstream release (closes: #500273, #505266).
 topgit (0.5-1) unstable; urgency=low
 
   * New upstream release (closes: #500273, #505266).
index 32e80e8a0dacf3d3a411c7499fec30e62688b4b0..5a041b9f79a8fd63d340ec7a8ecf6a2d606b01dc 100644 (file)
@@ -34,6 +34,9 @@
 #                  removed. This means that edits to the series file are
 #                  likely to vanish.
 #
 #                  removed. This means that edits to the series file are
 #                  likely to vanish.
 #
+#  tg-cleanexport: recreates the debian/patches directory from scratch, using
+#                  tg-rmdir and tg-export.
+#
 #   tg-forceclean: cleans the source tree, just like the debian/rules clean
 #                  target, and forcefully removes the debian/patches
 #                  directory in doing so. Yes, *force*-fully. WHAM!
 #   tg-forceclean: cleans the source tree, just like the debian/rules clean
 #                  target, and forcefully removes the debian/patches
 #                  directory in doing so. Yes, *force*-fully. WHAM!
@@ -55,7 +58,7 @@
 ifeq ($(shell tg summary -t),)
   # This is not a TopGit branch, so just blubber a bit.
 
 ifeq ($(shell tg summary -t),)
   # This is not a TopGit branch, so just blubber a bit.
 
-  tg-export tg-clean tg-forceclean tg-rmdir:
+  tg-export tg-clean tg-forceclean tg-rmdir tg-cleanexport:
        @echo "E: The $@ target only works from a TopGit repository." >&2
 else
 
        @echo "E: The $@ target only works from a TopGit repository." >&2
 else
 
@@ -126,6 +129,9 @@ tg-clean: clean
 tg-forceclean: clean
        test -d $(PATCHES_DIR) && rm -r $(PATCHES_DIR) || :
 
 tg-forceclean: clean
        test -d $(PATCHES_DIR) && rm -r $(PATCHES_DIR) || :
 
+tg-cleanexport: tg-rmdir
+       $(MAKE) --no-print-directory -f debian/rules tg-export
+
 endif
 
 .PHONY: tg-clean tg-export tg-forceclean tg-rmdir
 endif
 
 .PHONY: tg-clean tg-export tg-forceclean tg-rmdir