]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/blob - autogen.sh
Prevented duplicate entries in the device name combo box.
[xfce4-hdaps.git] / autogen.sh
1 #!/bin/sh
2 #
3 # $Id$
4 #
5 # Copyright (c) 2002-2007
6 # The Xfce development team. All rights reserved.
7 #
8
9 (type xdt-autogen) >/dev/null 2>&1 || {
10 cat >&2 <<EOF
11 autogen.sh: You don't seem to have the Xfce development tools installed on
12 your system, which are required to build this software.
13 Please install the xfce4-dev-tools package first, it is available
14 from http://www.xfce.org/.
15 EOF
16 exit 1
17 }
18
19 # verify that po/LINGUAS is present
20 (test -f po/LINGUAS) >/dev/null 2>&1 || {
21 cat >&2 <<EOF
22 autogen.sh: The file po/LINGUAS could not be found. Please check your snapshot
23 or try to checkout again.
24 EOF
25 exit 1
26 }
27
28 # substitute revision and linguas
29 linguas=`sed -e '/^#/d' po/LINGUAS`
30 revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
31 sed -e "s/@LINGUAS@/${linguas}/g" \
32 -e "s/@REVISION@/${revision}/g" \
33 < "configure.in.in" > "configure.in"
34
35 exec xdt-autogen $@