chiark / gitweb /
Merge commit 'refs/top-bases/debian/locations' into debian/locations
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 3 Mar 2009 10:01:03 +0000 (11:01 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 3 Mar 2009 10:01:03 +0000 (11:01 +0100)
debian/HOWTO-tg2quilt
debian/changelog
debian/control
debian/copyright
debian/rules
debian/tg2quilt.mk
debian/topgit.dirs

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
-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')
index 5d0d9549dde2d985e1036bf9e6ba8efa06e25dad..1ec039cf365a2d8dc26ac4cabdc912ec4524aa00 100644 (file)
@@ -1,3 +1,19 @@
+topgit (0.5-2) unstable; urgency=low
+
+  * Provide new tg2quilt target tg-cleanexport, which recreates debian/patches
+    in one step.
+  * Actually install the bash completion script; thanks to Uwe Kleine-König
+    for noticing and providing a patch (closes: #499072).
+  * Add a note to tg2quilt.mk's header explaining the need to soft-include
+    tg2quilt.mk, to avoid the topgit build-dependency.
+  * Suggest the git-email package (closes: #508079).
+  * Suggest the make and quilt packages.
+  * Fix GPL version in copyright file (closes: #514157).
+  * Deprecate tg2quilt.mk's $PATCHES_DIR variable and put a warning in place
+    to point people to $QUILT_PATCH_DIR instead.
+
+ -- 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).
index ab2dd5e5763992249a62a3eef7ac4f347f8303dd..3fef2654711092c6cc1f18cb75a88b65f0ff2393 100644 (file)
@@ -11,6 +11,7 @@ Vcs-Browser: http://git.debian.org/?p=collab-maint/topgit.git
 Package: topgit
 Architecture: all
 Depends: git-core
+Suggests: git-email, make, quilt
 Description: a Git patch queue manager
  TopGit manages a patch queue using Git topic branches, one patch per
  branch. It allows for patch dependencies and can thus manage
index 0afa1d432f324ffc1f36ccc694f95adb7f41f19f..aa91ee18de7320a7d805dc6d3f946b5572ab333f 100644 (file)
@@ -14,8 +14,8 @@ Copyright:
 License:
 
     This package is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License.
+    it under the terms of the GNU General Public License version 2 as
+    published by the Free Software Foundation.
 
     This package is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
index 3c814d79c2a3d2ac71bd6dff90aa82dae5ca3399..30f025c92844faef4daf123aa61f7b7a2493d693 100755 (executable)
@@ -27,6 +27,7 @@ install: build
        $(MAKE) DESTDIR=$(CURDIR)/debian/topgit prefix=/usr install
        rm -f $(wildcard $(CURDIR)/debian/topgit/usr/share/topgit/*.txt)
        dh_install
+       install -m644 contrib/tg-completion.bash debian/topgit/etc/bash_completion.d/topgit
 
 
 binary-arch: build install
index 32e80e8a0dacf3d3a411c7499fec30e62688b4b0..66e9d4123ac0ab758c334ebea0e64819f387b308 100644 (file)
 #   include /usr/share/quilt/quilt.make
 #   -include /usr/share/topgit/tg2quilt.mk
 #
+# The leading dash is necessary for make not to die when the file is not
+# installed. TopGit is not a build dependency (and does not need to be), and
+# if the package is not installed, debian/rules can still be used normally.
+#
 # The snippet exports the following targets. These targets only perform the
 # describe behaviour when invoked from a TopGit repository (`tg summary -t`
 # returns a non-empty set); used outside, they simply output informational
@@ -34,6 +38,9 @@
 #                  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!
@@ -42,7 +49,7 @@
 # that tg-export is automatically invoked before quilt gets a chance to patch
 # or unpatch the tree.
 #
-# The PATCHES_DIR variable can be set before including the file to override
+# The QUILT_PATCH_DIR variable can be set before including the file to override
 # the default debian/patches location.
 #
 # More information, particularly for people working on TopGit-using packages,
 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
 
 # We are in a TopGit branch, so let the fun begin.
 
-PATCHES_DIR ?= $(QUILT_PATCH_DIR)
+ifdef PATCHES_DIR
+       DUMMY := $(warning W: The $$PATCHES_DIR variable is deprecated, please use $$QUILT_PATCH_DIR instead.)
+       DUMMY := $(warning W: Sleeping for 10 seconds so you can read this!)
+       DUMMY := $(shell sleep 10)
+       QUILT_PATCH_DIR := $(PATCHES_DIR)
+endif
 
 # Hook tg-export into quilt's make(1) snippet such that it gets executed
 # before quilt patches or unpatches.
@@ -80,13 +92,13 @@ tg-export: __TG_COMMA := ,
 tg-export: __TG_EMPTY :=
 tg-export: __TG_SPACE := $(__TG_EMPTY) $(__TG_EMPTY)
 
-ifeq ($(wildcard $(PATCHES_DIR)/series),)
+ifeq ($(wildcard $(QUILT_PATCH_DIR)/series),)
   # The series file does not exist, so we proceed normally
 
   # tg-export will not work if the target dir already exists, so try to remove
   # it by calling tg-rmdir
   tg-export: tg-rmdir
-       tg export -b $(subst $(__TG_SPACE),$(__TG_COMMA),$(TG_BRANCHES)) --quilt $(PATCHES_DIR)
+       tg export -b $(subst $(__TG_SPACE),$(__TG_COMMA),$(TG_BRANCHES)) --quilt $(QUILT_PATCH_DIR)
 else
   # The series file already exists, so assume there is nothing to do.
   tg-export:
@@ -95,26 +107,26 @@ else
        @echo "I: (you can ignore this message during a \`tg-clean\` run.)" >&2
 endif
 
-ifeq ($(wildcard $(PATCHES_DIR)),)
+ifeq ($(wildcard $(QUILT_PATCH_DIR)),)
   # No patch directory, so nothing to do:
   tg-rmdir:
        @true
 
 else
   # There is a patch directory, let's try to clean it out:
-  tg-rmdir: __TG_FILES := $(shell find $(PATCHES_DIR) -type f -a -not -path \*/series \
+  tg-rmdir: __TG_FILES := $(shell find $(QUILT_PATCH_DIR) -type f -a -not -path \*/series \
                                     | xargs grep -l '^tg:')
   tg-rmdir:
        # remove all files whose contents matches /^tg:/
        test -n "$(__TG_FILES)" && rm $(__TG_FILES) || :
         # remove the series file
-       test -f $(PATCHES_DIR)/series && rm $(PATCHES_DIR)/series || :
+       test -f $(QUILT_PATCH_DIR)/series && rm $(QUILT_PATCH_DIR)/series || :
        # try to remove directories
-       find $(PATCHES_DIR) -type d | tac | xargs rmdir 2>/dev/null || :
+       find $(QUILT_PATCH_DIR) -type d | tac | xargs rmdir 2>/dev/null || :
        # fail if the directory could not be removed and still exists
-       @test ! -d $(PATCHES_DIR) || { \
-         echo "E: $(PATCHES_DIR) contains non-TopGit-generated files:" >&2; \
-         find $(PATCHES_DIR) -type f -printf 'E:   %P\n' >&2; \
+       @test ! -d $(QUILT_PATCH_DIR) || { \
+         echo "E: $(QUILT_PATCH_DIR) contains non-TopGit-generated files:" >&2; \
+         find $(QUILT_PATCH_DIR) -type f -printf 'E:   %P\n' >&2; \
          false; \
        }
 endif
@@ -124,7 +136,10 @@ tg-clean: clean
        $(MAKE) --no-print-directory -f debian/rules tg-rmdir
 
 tg-forceclean: clean
-       test -d $(PATCHES_DIR) && rm -r $(PATCHES_DIR) || :
+       test -d $(QUILT_PATCH_DIR) && rm -r $(QUILT_PATCH_DIR) || :
+
+tg-cleanexport: tg-rmdir
+       $(MAKE) --no-print-directory -f debian/rules tg-export
 
 endif
 
index 0f9bb2e2da8401b4d54547b031463c5ea8341f7e..ec622c440bf766e10b713c0bd343bcf600fb1713 100644 (file)
@@ -1,3 +1,3 @@
+etc/bash_completion.d
 usr/bin
 usr/share/topgit
-usr/share/topgit