From: <ad...@us...> - 2010-03-23 17:49:23
|
Revision: 5087 http://hugin.svn.sourceforge.net/hugin/?rev=5087&view=rev Author: ade_br Date: 2010-03-23 17:49:17 +0000 (Tue, 23 Mar 2010) Log Message: ----------- Check if utilities exist before calling them Should avoid problems in setups where utilities like wxrc are not installed. Modified Paths: -------------- hugin/trunk/src/translations/extract-messages.sh Modified: hugin/trunk/src/translations/extract-messages.sh =================================================================== --- hugin/trunk/src/translations/extract-messages.sh 2010-03-23 17:46:00 UTC (rev 5086) +++ hugin/trunk/src/translations/extract-messages.sh 2010-03-23 17:49:17 UTC (rev 5087) @@ -6,6 +6,11 @@ COPYRIGHT="Pablo dAngelo" WDIR=`pwd` # working dir +# safety checks +which wxrc &> /dev/null || { echo "Error: wxrc utility not found"; exit 0; } +which xgettext &> /dev/null || { echo "Error: xgettext utility not found"; exit 0; } +which msgmerge &> /dev/null || { echo "Error: xgettext utility not found"; exit 0; } + echo "Preparing rc files" cd ${BASEDIR} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |