diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2009-05-17 03:22:34 +0200 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2009-05-17 03:22:34 +0200 |
commit | f46395f8446a568681ef4b8d61bd2d390a6acc61 (patch) | |
tree | db9bfab55bc1ef783837f6e6b605bb748344dd24 /autogen.sh | |
parent | 90f017638e119185bf17a373d7d565eaebb8903c (diff) | |
download | tumbler-f46395f8446a568681ef4b8d61bd2d390a6acc61.tar.gz |
Initial import. Nothing useful yet.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..b043e28 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,51 @@ +#!/bin/sh +# +# vi:set et ai sw=2 sts=2 ts=2: */ +# - +# Copyright (c) 2009 Jannis Pohlmann <jannis@xfce.org> +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. + +(type xdt-autogen) >/dev/null 2>&1 || { + cat >&2 <<EOF +autogen.sh: You don't seem to have the Xfce development tools installed on + your system, which are required to build this software. + Please install the xfce4-dev-tools package first, it is available + from http://www.xfce.org/. +EOF + exit 1 +} + +# verify that po/LINGUAS is present +(test -f po/LINGUAS) >/dev/null 2>&1 || { + cat >&2 <<EOF +autogen.sh: The file po/LINGUAS could not be found. Please check your snapshot + or try to checkout again. +EOF + exit 1 +} + +# substitute linguas +linguas=`sed -e '/^#/d' po/LINGUAS` + +# TODO substitute revision +revision= + +sed -e "s/@LINGUAS@/${linguas}/g" \ + -e "s/@REVISION@/${revision}/g" \ + < "configure.in.in" > "configure.in" + +exec xdt-autogen $@ |