[MPlayer-cvslog] r28467 - trunk/help/help_create.sh

diego subversion at mplayerhq.hu
Wed Feb 4 20:17:05 CET 2009


Author: diego
Date: Wed Feb  4 20:17:03 2009
New Revision: 28467

Log:
Print an error message when given insufficient parameters.

Modified:
   trunk/help/help_create.sh

Modified: trunk/help/help_create.sh
==============================================================================
--- trunk/help/help_create.sh	Wed Feb  4 20:08:44 2009	(r28466)
+++ trunk/help/help_create.sh	Wed Feb  4 20:17:03 2009	(r28467)
@@ -3,6 +3,12 @@
 # Missing messages are filled in from the master message file and, if
 # requested, character set conversion is performed.
 
+if test -z $2 ; then
+    echo "Error: missing parameters"
+    echo "Usage: $0 <messages file> <character set>"
+    exit 1
+fi
+
 MASTER=help/help_mp-en.h
 TARGET=help_mp.h
 



More information about the MPlayer-cvslog mailing list