File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33plat=` uname -s`
44
55if [ $plat == ' Darwin' ]; then
6+ ODBCAdminURL=" http://supportdownload.apple.com/download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/Mac_OS_X/downloads/018-4778.20090828.Prt65/ODBCAdministrator.dmg"
7+ SQLiteURL=" http://www.ch-werner.de/sqliteodbc/sqlite3-odbc-0.93.dmg"
8+
9+ # Alias SQL XOP
10+ mkdir -p " ~/Documents/WaveMetrics/Igor Pro 6 User Files/Igor Extensions/"
11+ ln -s " /Applications/Igor Pro 6.3 Folder/More Extensions/Utilities/SQL.xop" $HOME " /Documents/WaveMetrics/Igor Pro 6 User Files/Igor Extensions/"
12+
613 volprefix=" /Volumes/"
714 volname=` diskutil info / | grep " Volume Name:" | awk -F " Volume Name: " ' {print $2}' | sed ' s/^ *//' `
815
9- curl -o ./sqlite3-odbc-0.93.dmg http://www.ch-werner.de/sqliteodbc/sqlite3-odbc-0.93.dmg
16+ # Install OS X ODBC Administrator
17+ curl -o ./ODBCAdministrator.dmg $ODBCAdminURL
18+ hdiutil mount ODBCAdministrator.dmg
19+ sudo installer -package " /Volumes/ODBC Administrator/ODBCAdministrator.pkg" -target " $volprefix$volname "
20+ hdiutil unmount " /Volumes/ODBC Administrator/"
21+ rm ./ODBCAdministrator.dmg
22+
23+
24+ # Install SQLite driver for ODBC
25+ curl -o ./sqlite3-odbc-0.93.dmg $SQLiteURL
1026 hdiutil mount sqlite3-odbc-0.93.dmg
1127 sudo installer -package /Volumes/sqlite3-odbc-0.93/sqlite3odbc0.93.pkg -target " $volprefix$volname "
1228 hdiutil unmount /Volumes/sqlite3-odbc-0.93/
1329 rm ./sqlite3-odbc-0.93.dmg
30+
1431
1532 SQLCMD=' myodbc-installer -d -a -n "SQLite3 Driver" -t "DRIVER=/usr/lib/libsqlite3odbc-0.93.dylib;SETUP=/usr/lib/libsqlite3odbc-0.93.dylib"'
1633 eval " $SQLCMD "
You can’t perform that action at this time.
0 commit comments