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