~ssh-rdp/deskbar-applet/history-count

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: rslinckx
  • Date: 2005-09-13 16:36:46 UTC
  • Revision ID: vcs-imports@canonical.com-20050913163646-gx8uamx1ea5564up
Initial revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Run this to generate all the initial makefiles, etc.
 
3
 
 
4
srcdir=`dirname $0`
 
5
test -z "$srcdir" && srcdir=.
 
6
 
 
7
PKG_NAME="deskbar-applet"
 
8
REQUIRED_AUTOCONF_VERSION=2.59
 
9
REQUIRED_AUTOMAKE_VERSION=1.9.2
 
10
 
 
11
(test -f $srcdir/configure.ac \
 
12
  && test -f $srcdir/autogen.sh) || {
 
13
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
 
14
    echo " top-level $PKG_NAME directory"
 
15
    exit 1
 
16
}
 
17
 
 
18
DIE=0
 
19
 
 
20
gnome_autogen=
 
21
gnome_datadir=
 
22
 
 
23
ifs_save="$IFS"; IFS=":"
 
24
for dir in $PATH ; do
 
25
  test -z "$dir" && dir=.
 
26
  if test -f $dir/gnome-autogen.sh ; then
 
27
    gnome_autogen="$dir/gnome-autogen.sh"
 
28
    gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
 
29
    break
 
30
  fi
 
31
done
 
32
IFS="$ifs_save"
 
33
 
 
34
if test -z "$gnome_autogen" ; then
 
35
  echo "You need to install the gnome-common module and make"
 
36
  echo "sure the gnome-autogen.sh script is in your \$PATH."
 
37
  exit 1
 
38
fi
 
39
 
 
40
GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen