2006-08-04 23:05:41 -05:00
|
|
|
#!/bin/sh
|
2006-08-05 02:08:32 -05:00
|
|
|
|
2010-09-21 22:25:26 -07:00
|
|
|
GETTEXT_PACKAGE=medit-1
|
2008-09-16 10:10:42 -05:00
|
|
|
|
|
|
|
case `pwd` in
|
|
|
|
*/po-gsv)
|
2010-09-21 22:25:26 -07:00
|
|
|
GETTEXT_PACKAGE=medit-1-gsv
|
2008-09-16 10:10:42 -05:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
do_or_die() {
|
|
|
|
echo "$*"
|
|
|
|
"$@" || exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
for f in pot dist; do if [ ! -e $f ]; then ln -s maintain $f; fi; done
|
2007-05-14 20:08:45 -05:00
|
|
|
|
2008-08-30 13:53:46 -05:00
|
|
|
dist () {
|
|
|
|
if [ -n "$1" ]; then
|
2010-09-01 01:14:25 -07:00
|
|
|
echo "intltool-update --gettext-package=$GETTEXT_PACKAGE -d $*"
|
|
|
|
exec intltool-update --gettext-package=$GETTEXT_PACKAGE -d "$@"
|
2008-08-30 13:53:46 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
for f in *.po; do
|
2010-09-01 01:14:25 -07:00
|
|
|
do_or_die intltool-update --gettext-package=$GETTEXT_PACKAGE -d `basename $f .po`
|
2008-08-30 13:53:46 -05:00
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
2006-08-05 02:08:32 -05:00
|
|
|
case `basename $0` in
|
2008-08-30 13:53:46 -05:00
|
|
|
pot)
|
2008-09-16 10:10:42 -05:00
|
|
|
args="--gettext-package=$GETTEXT_PACKAGE -p"
|
2008-08-30 13:53:46 -05:00
|
|
|
;;
|
|
|
|
dist)
|
|
|
|
dist "$@"
|
|
|
|
;;
|
|
|
|
*)
|
2008-09-16 10:10:42 -05:00
|
|
|
args="--gettext-package=$GETTEXT_PACKAGE -m"
|
2008-08-30 13:53:46 -05:00
|
|
|
;;
|
2006-08-05 02:08:32 -05:00
|
|
|
esac
|
|
|
|
|
2010-09-01 01:14:25 -07:00
|
|
|
echo "intltool-update $args $*"
|
|
|
|
exec intltool-update $args "$@"
|