1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
gbp clone
---------
Starting with git-buildpackage>0.8.1, here's a 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 for ALL repositories cloned via 'gbp' (in the future), do
something like the following:
<snip>
mkdir -p ~/bin
cat >> ~/bin/gbphook-postclone <<EOF
#!/bin/sh
## script to initialize a cloned repository
# - enable the "--follow-tags" mode for pushing
echo "tuning git-repository for ${NAME}"
git config push.followTags true && echo "enabled push.followTags"
# - ignore quilt's .pc/ directory
GITEXCLUDE=".git/info/exclude"
egrep "^/?\.pc/?$" "${GITEXCLUDE}" >/dev/null 2>&1 \
|| (echo "/.pc/" >> "${GITEXCLUDE}" && echo "ignoring /.pc/")
EOF
chmod u+x ~/bin/gbphook-postclone
cat >> ~/.gbp.conf <<EOF
[clone]
postclone = ~/bin/gbphook-postclone
EOF
</snip>
Then simply run:
$ gbp clone ...
-- IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> Mon, 1 Aug 2017 12:15:50 +0200
debian/*.symbols
---------
Assumed you would love to update the symbols files, invoke the following and
replace the version information - this example uses version 4.0.0:
export VERSION="4.0.0"
dpkg-gensymbols -plibags4 -e/usr/lib/x86_64-linux-gnu/libags.so.4 -e/usr/lib/x86_64-linux-gnu/libags_thread.so.4 -e/usr/lib/x86_64-linux-gnu/libags_server.so.4 -v$VERSION -Idebian/libags4.symbols -Odebian/libags4.symbols
dpkg-gensymbols -plibags-audio4 -e/usr/lib/x86_64-linux-gnu/libags_audio.so.4 -v$VERSION -Idebian/libags-audio4.symbols -Odebian/libags-audio4.symbols
dpkg-gensymbols -plibags-gui4 -e/usr/lib/x86_64-linux-gnu/libags_gui.so.4 -v$VERSION -Idebian/libags-gui4.symbols -Odebian/libags-gui4.symbols
-- Joël Krähemann <jkraehemann@gmail.com> Tue, 29 Aug 2017 20:45:31 +0200
autopkgtest audio config
---------
GSequencer's test suite allows you to replace configuration file by
AGS_TEST_CONFIG environment variable. For audible tests you might want to
adjust version and replace builtin config.
export VERSION="3.16.12"
export AGS_TEST_CONFIG=`cat conf/ags-pulse.conf`
autopkgtest gsequencer_${VERSION}-1.dsc -- null
-- Joël Krähemann <jkraehemann@gmail.com> Sat, 22 Jan 2022 15:00:34 +0200
|