Author: wyoung
Date: Thu Oct  4 20:44:43 2007
New Revision: 1768

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1768&view=rev
Log:
Added Cygwin awareness to exrun Bourne shell script: it knows how to
call exrun.bat in a cmd.exe shell for you now.

Modified:
    trunk/exrun

Modified: trunk/exrun
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/exrun?rev=1768&r1=1767&r2=1768&view=diff
==============================================================================
--- trunk/exrun (original)
+++ trunk/exrun Thu Oct  4 20:44:43 2007
@@ -31,19 +31,24 @@
 then
        shift
 
-       if [ ! -e libmysqlpp.so.2 ]
+       if [ `uname -o` != 'Cygwin' ]
        then
-               ( ln -sf libmysqlpp.so libmysqlpp.so.2 )
-       fi
+               if [ ! -e libmysqlpp.so.2 ]
+               then
+                       ( ln -sf libmysqlpp.so libmysqlpp.so.2 )
+               fi
 
-       if [ -e /usr/bin/ldd ]
-       then
-               LD_LIBRARY_PATH=. $TOOL ./$PROG $*
-       elif [ -e /usr/bin/otool ]
-       then
-               DYLD_LIBRARY_PATH=. $TOOL ./$PROG $*
+               if [ -e /usr/bin/ldd ]
+               then
+                       LD_LIBRARY_PATH=. $TOOL ./$PROG $*
+               elif [ -e /usr/bin/otool ]
+               then
+                       DYLD_LIBRARY_PATH=. $TOOL ./$PROG $*
+               else
+                       echo "ERROR: I don't grok this system's dynamic linkage 
system."
+               fi
        else
-               echo ERROR: I don\'t grok this system\'s dynamic linkage system.
+               cmd.exe /c exrun.bat $PROG $*
        fi
 else
        echo "usage: $0 $TOOL <example> [args...]"


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

Reply via email to