1#!/bin/bash 2 3#[ -x "intltool-update" ] || { echo "error: intltool-update not found, run autogen.sh" > /dev/stderr; exit 1; } 4which "intltool-update" || { echo "error: intltool-update not found, run autogen.sh" > /dev/stderr; exit 1; } 5INTLTOOL_UPDATE="$(which "intltool-update")" 6 7 8eval $(grep "^[[:space:]]*ALL_LINGUAS[[:space:]]*=[[:space:]]*\".*\"[[:space:]]*$" "configure.ac") 9 10cd po || exit 1; 11 12for PO_LANG in $ALL_LINGUAS 13do 14 echo "Updating \"$PO_LANG\"" 15 $INTLTOOL_UPDATE $PO_LANG || exit 1; 16 echo 17done 18