autogen.sh revision 1.1.1.1
1#!/bin/sh 2# Example for use of GNU gettext. 3# Copyright (C) 2003-2006 Free Software Foundation, Inc. 4# This file is in the public domain. 5# 6# Script for regenerating all autogenerated files. 7 8if test -r ../Makefile.am; then 9 # Inside the gettext source directory. 10 GETTEXT_TOPSRCDIR=../../.. 11else 12 if test -r ../Makefile; then 13 # Inside a gettext build directory. 14 GETTEXT_TOOLS_SRCDIR=`sed -n -e 's,^top_srcdir *= *\(.*\)$,\1,p' ../Makefile` 15 # Adjust a relative top_srcdir. 16 case $GETTEXT_TOOLS_SRCDIR in 17 /*) ;; 18 *) GETTEXT_TOOLS_SRCDIR=../$GETTEXT_TOOLS_SRCDIR ;; 19 esac 20 GETTEXT_TOPSRCDIR=$GETTEXT_TOOLS_SRCDIR/../.. 21 else 22 # Installed under ${prefix}/share/doc/gettext/examples. 23 . ../installpaths 24 fi 25fi 26 27cp -p ${GETTEXTSRCDIR-$GETTEXT_TOPSRCDIR/gettext-tools/gnulib-lib}/gettext.h gettext.h 28 29autopoint -f # was: gettextize -f -c 30rm po/Makevars.template 31rm po/Rules-quot 32rm po/boldquot.sed 33rm po/en@boldquot.header 34rm po/en@quot.header 35rm po/insert-header.sin 36rm po/quot.sed 37 38aclocal -I m4 39 40autoconf 41 42automake -a -c 43 44cd po 45for f in *.po; do 46 if test -r "$f"; then 47 lang=`echo $f | sed -e 's,\.po$,,'` 48 msgfmt -c -o $lang.gmo $lang.po 49 fi 50done 51cd .. 52