Commit c2b0b19e authored by IOhannes zmölnig's avatar IOhannes zmölnig

Removed obsolete d/

parent 2de6fe95
This package comes with a script 'debian/'.
Running it after a fresh clone of the packaging repository
will fine-tune your local copy, namely:
- 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.
- do an initial checkout of the 3 packaging branches (master, pristine-tar,
The script only needs to run once (though running it multiple times shouldn't
You are of course free to *not* run the script, if you prefer.
-- IOhannes m zmölnig (Debian/GNU) <> Tue, 11 Nov 2015 11:11:03 +0100
## script to initialize a cloned repository
## with per (local) repository settings.
# - ignore quilt's .pc/ directory
# - enable the "--follow-tags" mode for pushing
error() {
echo "$@" 1>&2
NAME=$(dpkg-parsechangelog -S Source)
if [ "x${NAME}" = "x" ]; then
error "unable to determine package name"
error "make sure you run this script within a source package dir"
exit 1
if [ ! -d ".git" ]; then
error "it seems like this source package is not under git control"
exit 1
echo "tuning git-repository for ${NAME}"
git config push.followTags true && echo "enabled push.followTags"
egrep "^/?\.pc/?$" "${GITEXCLUDE}" >/dev/null 2>&1 \
|| (echo "/.pc/" >> "${GITEXCLUDE}" && echo "ignoring /.pc/")
for branch in pristine-tar upstream master; do
git checkout "${branch}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment