File: b

package info (click to toggle)
pkg-perl-tools 0.85
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 796 kB
  • sloc: perl: 3,254; sh: 3,244; makefile: 144; python: 18
file content (21 lines) | stat: -rwxr-xr-x 661 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# Copyright 2011-2012, gregor herrmann <gregoa@debian.org>
# Copyright 2015, Salvatore Bonaccorso <carnil@debian.org>
# Released under the WTFPL

# "main build script", either calls (svn|git)-buildpackage
# which then use buildpackage-pdebuild
# or calls buildpackage-pdebuild itself

BUILDER=buildpackage-pdebuild
BUILDERSUBCMD=

dh_testdir >/dev/null 2>&1 || { echo "Not a source package ..." ; exit 1; }

[ -d .svn ] && BUILDER=svn-buildpackage
[ -d .git ] && BUILDER=gbp BUILDERSUBCMD=buildpackage

[ -x "$(command -v $BUILDER)" ] || { echo "BUILDER $BUILDER doesn't exist or is not executable ..." ; exit 1; }

exec $BUILDER $BUILDERSUBCMD "$@"