#!/bin/sh

# update-po.sh: keeps PO files updated via SVN repository.
#
# Copyright (c) 2005 Jean-Francois Wauthy <pollux@xfce.org>
# Copyright (c) 2005 Daichi Kawahata <daichi@xfce.org>
#
# This script 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; version 2 of the
# License ONLY.
#
# This script 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 at:
# http://gnu.org/licenses/gpl.html

if [ ! -z "$1" ]; then
  packages="$@"
else
  packages="			\
	libexo			\
	libxfce4util		\
	libxfcegui4		\
	mousepad		\
	terminal		\
	thunar			\
	xarchiver		\
	xfburn			\
	xfcalendar		\
	xfce-mcs-manager	\
	xfce-mcs-plugins	\
	xfce-utils		\
	xfce4-appfinder		\
	xfce4-icon-theme	\
	xfce4-mixer		\
	xfce4-panel		\
	xfce4-session		\
	xfce4-terminal		\
	xfce4-trigger-launcher	\
	xfdesktop		\
	xfmedia			\
	xfprint			\
	xfwm4"
  podoc_packages="\
	libexo			\
	terminal		\
	thunar"

fi

for package in $packages

do
  echo "Updating PO files for '$package (trunk)' package..."
  svn up $package/trunk/po
  svn up $package/trunk/po-doc

done

for package in $podoc_packages
do
  echo "Updating PO-DOC files for '$package (trunk)' package..."
  svn up $package/trunk/po-doc
done

exit 0

