Skip to content
Snippets Groups Projects
Forked from Xfce / thunar
10556 commits behind the upstream repository.
  • Benedikt Meurer's avatar
    9e1abba4
    2006-03-06 Benedikt Meurer <benny@xfce.org> · 9e1abba4
    Benedikt Meurer authored
    	* autogen.sh, configure.in.in, po/LINGUAS: Read the set of available
    	  languages from po/LINGUAS and substitute them when autogen.sh is
    	  run. This way we can continue to use glib-gettext.
    	* docs/manual/, po-doc/, configure.in.in, Makefile.am: Import Daichi's
    	  initial japanese translations for the user manual.
    
    
    
    
    (Old svn revision: 20256)
    9e1abba4
    History
    2006-03-06 Benedikt Meurer <benny@xfce.org>
    Benedikt Meurer authored
    	* autogen.sh, configure.in.in, po/LINGUAS: Read the set of available
    	  languages from po/LINGUAS and substitute them when autogen.sh is
    	  run. This way we can continue to use glib-gettext.
    	* docs/manual/, po-doc/, configure.in.in, Makefile.am: Import Daichi's
    	  initial japanese translations for the user manual.
    
    
    
    
    (Old svn revision: 20256)
autogen.sh 1.01 KiB
#!/bin/sh
#
# $Id$
#
# Copyright (c) 2002-2006
#         The Thunar development team. All rights reserved.
#
# Written for Thunar by Benedikt Meurer <benny@xfce.org>.
#

(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 revision and linguas
linguas=`sed -e '/^#/d' po/LINGUAS`
revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
sed -e "s/@LINGUAS@/${linguas}/g" \
    -e "s/@REVISION@/${revision}/g" \
    < "configure.in.in" > "configure.in"

exec xdt-autogen $@

# vi:set ts=2 sw=2 et ai: