File: autogen.sh

package info (click to toggle)
pygobject 3.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,268 kB
  • ctags: 4,864
  • sloc: ansic: 20,813; python: 15,139; sh: 11,845; makefile: 567; xml: 31
file content (29 lines) | stat: -rwxr-xr-x 616 bytes parent folder | download
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
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
set -e
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PKG_NAME="pygobject"

(test -f $srcdir/configure.ac \
  && test -f $srcdir/$PKG_NAME.doap) || {
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
    echo " top-level $PKG_NAME directory"
    exit 1
}

if type lcov >/dev/null 2>&1; then
    EXTRA_ARGS="--enable-code-coverage"
else
    echo "lcov not installed, not enabling code coverage"
fi


which gnome-autogen.sh || {
    echo "You need to install gnome-common."
    exit 1
}

. gnome-autogen.sh "$EXTRA_ARGS" "$@"