summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/gnome2mmapp/autogen.sh
blob: 30e9875b624488f193a88cd9e7a38f8a8d8f636d (plain)
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
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
# generated 2004/4/12 12:12:12 EDT by amp8165@localhost.(none)
# using glademm V2.0.0
# I didn't want to put a copy of 'macros' in every generated package
# so I try to find them at autogen.sh time and copy them here.
# (Normally if you have access to a cvs repository a copy of macros is
# put into your directory at checkout time. E.g. cvs.gnome.org/gnome-common)
if [ ! -e macros ]
then
  GLADE_MACROS=`which glade | sed -e 's-bin/glade-share/glade-'`
  if [ -r $GLADE_MACROS/gnome/gnome.m4 ]
  then
    if cp --dereference /dev/null /dev/zero
    then
      cp -r --dereference $GLADE_MACROS/gnome macros
    else
      cp -r $GLADE_MACROS/gnome macros
    fi
  else
    echo "I can't find glade's gnome m4 macros. Please copy them to ./macros and retry."
    exit 2
  fi
fi

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PKG_NAME="%{APPNAMELC}"

(test -f $srcdir/configure.in \
## put other tests here
) || {
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
    echo " top-level $PKG_NAME directory"
    exit 1
}

export ACLOCAL_FLAGS="-I `pwd`/macros $ACLOCAL_FLAGS"
. $srcdir/macros/autogen.sh