#!/bin/sh
#
# Copyright (C) 1995 Software Foundation, Inc.
#
# 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, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
 
# This file is meant for author or maintainers which want to internationalize
# their package with the help of GNU gettext.  For further information
# how to use it consult the GNU gettext manual.
#
if test $# -ne 1; then
  echo "Usage: $0 <dir>"
  exit 1
fi

if test ! -d $1/intl -o ! -d $1/po; then
  echo $1 seems not to be the GNU gettext directory
  exit 1
fi

gettext_dir=$1

mkdir intl po

intl_files="Makefile.in combine-sh libgettext.perl linux-msg.sed \
makelinks po-to-tbl.sed tupdate.perl.in xopen-msg.sed po-mode.el \
gettext.h gettextP.h hash-string.h libgettext.h \
bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c \
textdomain.c cat-compat.c"

po_files=Makefile.in.in

(cd intl && for file in $intl_files; do
   echo linking intl/$file
   ln -s $gettext_dir/intl/$file .
 done)

(cd po && for file in $po_files; do
   echo linking po/$file
   ln -s $gettext_dir/po/$file .
 done)
