[SCM] sox/master: Introduce postclone.sh script.

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Sun Nov 5 21:17:18 UTC 2017


The following commit has been merged in the master branch:
commit c54cae5b85a3e2073a79346cf89848d18e184c91
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Sun Nov 5 22:01:49 2017 +0100

    Introduce postclone.sh script.

diff --git a/debian/README.source b/debian/README.source
index df962fa..38e76aa 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -10,3 +10,26 @@ use quilt by Raphaël Hertzog:
 http://raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/
 
  -- Pascal Giard <pascal at debian.org>  Tue, 22 Jan 2013 22:56:30 -0500
+
+gbp clone
+---------
+
+Starting with gbp>0.8.1, here's an simple way to automatically fine-tune the
+repository in the following ways:
+- make git ignore any .pc/ directory (created by quilt)
+- enable the "--follow-tags" when running 'git-push', so it's harder
+  to forget to push packaging tags along with the branches.
+
+To enable this, run gbp-clone with the '--postclone debian/gbp/postclone.sh'
+option.
+To enable this for ALL repositories cloned via 'gbp' (in the future), do
+something like the following:
+
+    $ mkdir -p ~/bin
+    $ cp debian/gbp/postclone.sh ~/bin/gbphook-postclone
+    $ cat >> ~/.gbp.conf <<EOF
+    [clone]
+    postclone = ~/bin/gbphook-postclone
+    EOF
+
+ -- IOhannes m zmölnig (Debian/GNU) <umlaeute at debian.org>  Mon, 1 Aug 2016 12:15:50 +0200
diff --git a/debian/gbp/postclone.sh b/debian/gbp/postclone.sh
new file mode 100755
index 0000000..5790ec6
--- /dev/null
+++ b/debian/gbp/postclone.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+## script to initialize a cloned repository
+## with per (local) repository settings.
+
+# - ignore quilt's .pc/ directory
+# - enable the "--follow-tags" mode for pushing
+
+echo "tuning git-repository for ${NAME}"
+git config push.followTags true && echo "enabled push.followTags"
+
+GITEXCLUDE=".git/info/exclude"
+egrep "^/?\.pc/?$" "${GITEXCLUDE}" >/dev/null 2>&1 \
+  || (echo "/.pc/" >> "${GITEXCLUDE}" && echo "ignoring /.pc/")

-- 
sox packaging



More information about the pkg-multimedia-commits mailing list