~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Julian Andres Klode
  • Date: 2019-04-29 19:38:51 UTC
  • Revision ID: juliank@ubuntu.com-20190429193851-501astod6vchq39j
Tags: 3.192.20
releasing package update-notifier version 3.192.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
# Run this to generate all the initial makefiles, etc.
3
3
 
 
4
set -e
 
5
 
4
6
srcdir=`dirname $0`
5
7
test -z "$srcdir" && srcdir=.
6
8
 
7
 
PKG_NAME="Upgrade Notifier"
 
9
PKG_NAME="Update Notifier"
8
10
 
9
 
(test -f $srcdir/configure.in \
 
11
(test -f $srcdir/configure.ac \
10
12
  && test -f $srcdir/README) || {
11
13
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
12
14
    echo " top-level gnome directory"
13
15
    exit 1
14
16
}
15
17
 
16
 
# do not use gnome-autogen.sh as long as it's broken
 
18
dpkg-checkbuilddeps -d 'libtool, automake, intltool, libglib2.0-dev'
 
19
 
17
20
cd "$srcdir"
18
21
autoreconf --force -i -v    
19
22
intltoolize -c
20
23
aclocal
21
24
rm -rf autom4te.cache
22
25
cd po; intltool-update -p --verbose
23
 
exit 0
24
 
 
25
 
which gnome-autogen.sh || {
26
 
    echo "You need to install gnome-common"
27
 
    exit 1
28
 
}
29
 
 
30
 
USE_GNOME2_MACROS=1 . gnome-autogen.sh