1
by Robert Ancell
Split lightdm-gtk-greeter out of lightdm |
1 |
#!/bin/sh
|
2 |
# Run this to generate all the initial makefiles, etc.
|
|
424
by Sean Davis
Populate authors based on bzr log |
3 |
#
|
4 |
# Copyright (C) 2010 - 2011, Robert Ancell <robert.ancell@canonical.com>
|
|
5 |
# Copyright (C) 2017 - 2018, Sean Davis <smd.seandavis@gmail.com>
|
|
6 |
#
|
|
7 |
# This program is free software: you can redistribute it and/or modify it under
|
|
8 |
# the terms of the GNU General Public License as published by the Free Software
|
|
9 |
# Foundation, either version 3 of the License, or (at your option) any later
|
|
10 |
# version. See http://www.gnu.org/copyleft/gpl.html the full text of the
|
|
11 |
# license.
|
|
12 |
#
|
|
374
by smd.seandavis at gmail
Replace usage of deprecated gnome-common macros/variables (LP: #1599486, Debian: #829931) |
13 |
test -n "$srcdir" || srcdir=$(dirname "$0") |
14 |
test -n "$srcdir" || srcdir=. |
|
15 |
||
16 |
olddir=$(pwd) |
|
17 |
||
18 |
cd $srcdir |
|
19 |
||
20 |
(test -f configure.ac) || { |
|
21 |
echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***" |
|
22 |
exit 1 |
|
23 |
}
|
|
24 |
||
25 |
# shellcheck disable=SC2016
|
|
26 |
PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac) |
|
27 |
||
28 |
if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then |
|
29 |
echo "*** WARNING: I am going to run 'configure' with no arguments." >&2 |
|
30 |
echo "*** If you wish to pass any to it, please specify them on the" >&2 |
|
31 |
echo "*** '$0' command line." >&2 |
|
32 |
echo "" >&2 |
|
33 |
fi
|
|
34 |
||
393
by Sean Davis
Finish gnome-common build deprecation based on https://github.com/phako/gtkterm/commit/f3d567c9e03354940fa23a183ba900649cee5121 |
35 |
aclocal --install || exit 1 |
374
by smd.seandavis at gmail
Replace usage of deprecated gnome-common macros/variables (LP: #1599486, Debian: #829931) |
36 |
autoreconf --verbose --force --install || exit 1 |
37 |
||
38 |
cd "$olddir" |
|
39 |
if [ "$NOCONFIGURE" = "" ]; then |
|
40 |
$srcdir/configure "$@" || exit 1 |
|
41 |
||
42 |
if [ "$1" = "--help" ]; then exit 0 else |
|
43 |
echo "Now type 'make' to compile $PKG_NAME" || exit 1 |
|
44 |
fi
|
|
45 |
else
|
|
46 |
echo "Skipping configure process." |
|
47 |
fi
|