Author: wyoung
Date: Tue Nov 28 03:11:04 2006
New Revision: 1334

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1334&view=rev
Log:
Added usage message on detection of improper arguments to examples/exrun

Modified:
    trunk/examples/exrun

Modified: trunk/examples/exrun
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/exrun?rev=1334&r1=1333&r2=1334&view=diff
==============================================================================
--- trunk/examples/exrun (original)
+++ trunk/examples/exrun Tue Nov 28 03:11:04 2006
@@ -1,11 +1,22 @@
 #!/bin/sh
+if [ -z "$1" ]
+then
+       echo "usage: $0 <example> [args...]"
+       echo
+       echo "   Runs the given example, using the library built in ../lib 
instead"
+       echo "   of using the system library search mechanism.  Accepts an "
+       echo "   arbitrary number of arguments."
+       echo
+       exit 1
+fi
+
+PROG=$1
+shift
+
 if [ ! -e ../lib/libmysqlpp.so.2 ]
 then
        ( cd ../lib ; ln -sf libmysqlpp.so libmysqlpp.so.2 )
 fi
-
-PROG=$1
-shift
 
 if [ -e /usr/bin/ldd ]
 then


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to