~ubuntu-branches/ubuntu/karmic/kdevelop/karmic

« back to all changes in this revision

Viewing changes to languages/cpp/app_templates/gnome2mmapp/autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-05-25 19:34:26 UTC
  • mfrom: (1.1.11 upstream) (2.3.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090525193426-hdntv90rvflyew8g
Tags: 4:3.9.93-1ubuntu1
* Merge from Debian experimental, remaining changes:
  - Conflict/replace -kde4 packages

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
 
# generated 2004/4/12 12:12:12 EDT by amp8165@localhost.(none)
4
 
# using glademm V2.0.0
5
 
# I didn't want to put a copy of 'macros' in every generated package
6
 
# so I try to find them at autogen.sh time and copy them here.
7
 
# (Normally if you have access to a cvs repository a copy of macros is
8
 
# put into your directory at checkout time. E.g. cvs.gnome.org/gnome-common)
9
 
if [ ! -e macros ]
10
 
then
11
 
  GLADE_MACROS=`which glade | sed -e 's-bin/glade-share/glade-'`
12
 
  if [ -r $GLADE_MACROS/gnome/gnome.m4 ]
13
 
  then
14
 
    if cp --dereference /dev/null /dev/zero
15
 
    then
16
 
      cp -r --dereference $GLADE_MACROS/gnome macros
17
 
    else
18
 
      cp -r $GLADE_MACROS/gnome macros
19
 
    fi
20
 
  else
21
 
    echo "I can't find glade's gnome m4 macros. Please copy them to ./macros and retry."
22
 
    exit 2
23
 
  fi
24
 
fi
25
 
 
26
 
srcdir=`dirname $0`
27
 
test -z "$srcdir" && srcdir=.
28
 
 
29
 
PKG_NAME="%{APPNAMELC}"
30
 
 
31
 
(test -f $srcdir/configure.in \
32
 
## put other tests here
33
 
) || {
34
 
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
35
 
    echo " top-level $PKG_NAME directory"
36
 
    exit 1
37
 
}
38
 
 
39
 
export ACLOCAL_FLAGS="-I `pwd`/macros $ACLOCAL_FLAGS"
40
 
. $srcdir/macros/autogen.sh