Author: wyoung
Date: Thu Nov 22 04:12:08 2007
New Revision: 1879

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1879&view=rev
Log:
Fixed exrun to work on OS X again, and made a positive check for Cygwin,
instead of making it the default.  Default is now the Linux way, which
is the one most likely to work in many places.

Modified:
    trunk/exrun

Modified: trunk/exrun
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/exrun?rev=1879&r1=1878&r2=1879&view=diff
==============================================================================
--- trunk/exrun (original)
+++ trunk/exrun Thu Nov 22 04:12:08 2007
@@ -31,24 +31,20 @@
 then
        shift
 
-       if [ `uname -o` != 'Cygwin' ]
+       if [ `uname -s` == 'Darwin' ]
        then
-               if [ ! -e libmysqlpp.so.2 ]
-               then
-                       ( ln -sf libmysqlpp.so libmysqlpp.so.2 )
-               fi
-
+               DYLD_LIBRARY_PATH=. $TOOL ./$PROG $*
+       elif [ `uname -o` == 'Cygwin' ]
+       then
+               cmd.exe /c exrun.bat $PROG $*
+       else
                if [ -e /usr/bin/ldd ]
                then
+                       ln -sf libmysqlpp.so libmysqlpp.so.2
                        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
-               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