List:Commits« Previous MessageNext Message »
From:pharvey Date:February 14 2007 3:42am
Subject:Connector/ODBC 5 commit: r796 - trunk
View as plain text  
Added:
   trunk/Install.sh
Modified:
   trunk/Build.sh
   trunk/connector-odbc.vpj
Log:
- improve install (from source) on UNIX/Linux


Modified: trunk/Build.sh
===================================================================
--- trunk/Build.sh	2007-02-13 23:48:21 UTC (rev 795)
+++ trunk/Build.sh	2007-02-14 03:42:09 UTC (rev 796)
@@ -33,30 +33,34 @@
 #
 ###################################################################
 
-#
+echo "+-----------------------------------------------------+"
+echo "| BUILD                                               |"
+echo "+-----------------------------------------------------+"
+
+####
 # Allow specific qmake to be provided by env var. This is to handle
 # case where more than one ver of Qt dev. is installed (qt3 and qt4 
 # for example).
-#
+####
 if test "x$QMAKE" = "x"
 then
 	QMAKE=qmake
 fi
 
-#
+####
 # Force relink.
-#
+####
 rm -rf SDK/lib SDK/bin Driver/lib Driver/bin Tools/bin
 
-#
+####
 # Tell qmake to create makefiles. This will recurse by default.
-#
+####
 "$QMAKE"
 
-#
+####
 # Explicitly do recursive qmake. This is not normally required since
 # qmake alone in root dir will recurse.
-#
+####
 for d in SDK/C/Library SDK/C/Tests SDK/Dbg/Library SDK/Dbg/Tests \
 	SDK/Tst/Library SDK/Installer/Library SDK/Installer/Tests \
 	SDK/MYSQLPlus/Library SDK/MYSQLPlus/Tests \
@@ -69,8 +73,18 @@
 	cd -
 done
 
-#
+####
 # Finally - lets build the source!
-#
+####
 make
 
+echo "+-----------------------------------------------------+"
+echo "| BUILD DONE                                          |"
+echo "+-----------------------------------------------------+"
+echo "|                                                     |"
+echo "| Hopefully things went well and you have results in  |"
+echo "| lib and bin sub-dirs. Consider running Install.sh   |"
+echo "| or Upgrade.sh next.                                 |"
+echo "|                                                     |"
+echo "+-----------------------------------------------------+"
+

Added: trunk/Install.sh
===================================================================
--- trunk/Install.sh	2007-02-13 23:48:21 UTC (rev 795)
+++ trunk/Install.sh	2007-02-14 03:42:09 UTC (rev 796)
@@ -0,0 +1,71 @@
+#!/bin/sh
+
+###################################################################
+#
+# \brief    Install script for unix.
+#
+#           Execute this on UNIX/Linux/OSX platforms to install a 
+#           fresh source build.
+#
+# \todo     1. Need to make this work with other than unixODBC.
+#           2. Need to work with 32 and 64bit.
+#           3. Need to be smarter/flexible about target directory.
+#
+# \sa       README.linux
+#           Uninstall.sh 
+#           Upgrade.sh
+#           Build.sh
+#
+###################################################################
+
+####
+# Init...
+####
+echo "+-----------------------------------------------------+"
+echo "| INSTALL                                             |"
+echo "+-----------------------------------------------------+"
+
+TARGET_LIB_DIR="/usr/local/lib"
+TARGET_BIN_DIR="/usr/local/bin"
+LIB_EXT="so"
+
+####
+# Copying files...
+####
+cp Driver/lib/libMYODBCDriver5.$LIB_EXT* $TARGET_LIB_DIR
+cp Driver/lib/libMYODBCSetup5.$LIB_EXT* $TARGET_LIB_DIR
+
+####
+# Register driver...
+####
+Tools/bin/MYODBCInstaller -a -d -n "MySQL Connector/ODBC v5" -t
"DRIVER=libMYODBCDriver5.$LIB_EXT;SETUP=libMYODBCSetup5.$LIB_EXT"
+
+####
+# Fini...
+####
+echo "+-----------------------------------------------------+"
+echo "| DONE                                                |"
+echo "+-----------------------------------------------------+"
+echo "|                                                     |"
+echo "| Hopefully things went well; the Connector/ODBC      |"
+echo "| files have been copied to the target directory      |"
+echo "| and the driver has been registered.                 |"
+echo "|                                                     |"
+echo "| Connector/ODBC is ready to use.                     |"
+echo "|                                                     |"
+echo "| The most common thing to do next is to create a Data|"
+echo "| Source Name (DSN) and use that to connect. There are|"
+echo "| a number of ways to create a DSN. For example;      |"
+echo "|                                                     |"
+echo "| 1. unixODBC GUI 'ODBCConfig'                        |"
+echo "| 2. C/ODBC 'Tools/bin/MYODBCInstaller'               |"
+echo "| 3. edit ~/.odbc.ini                                 |"
+echo "|                                                     |"
+echo "| You can test the driver using a command-line tool   |"
+echo "| such as;                                            |"
+echo "|                                                     |"
+echo "| 1. unixODBC 'isql'                                  |"
+echo "| 2. C/ODBC 'Tools/bin/MYODBCShell'                   |"
+echo "|                                                     |"
+echo "+-----------------------------------------------------+"
+

Modified: trunk/connector-odbc.vpj
===================================================================
--- trunk/connector-odbc.vpj	2007-02-13 23:48:21 UTC (rev 795)
+++ trunk/connector-odbc.vpj	2007-02-14 03:42:09 UTC (rev 796)
@@ -60,6 +60,7 @@
 			Name="Header Files"
 			Filters="*.h;*.H;*.hh;*.hpp;*.hxx;*.inc;*.sh;*.cpy;*.if">
 			<F N="Build.sh"/>
+			<F N="Install.sh"/>
 			<F N="VersionInfo.h"/>
 		</Folder>
 		<Folder

Thread
Connector/ODBC 5 commit: r796 - trunkpharvey14 Feb