aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/sqlite/unix/sqlite-3.5.1/tclinstaller.tcl
diff options
context:
space:
mode:
authordan miller2007-10-21 08:36:32 +0000
committerdan miller2007-10-21 08:36:32 +0000
commit2f8d7092bc2c9609fa98d6888106b96f38b22828 (patch)
treeda6c37579258cc965b52a75aee6135fe44237698 /libraries/sqlite/unix/sqlite-3.5.1/tclinstaller.tcl
parent* Committing new PolicyManager based on an ACL system. (diff)
downloadopensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.zip
opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.gz
opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.bz2
opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.xz
libraries moved to opensim-libs, a new repository
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/tclinstaller.tcl')
-rw-r--r--libraries/sqlite/unix/sqlite-3.5.1/tclinstaller.tcl32
1 files changed, 0 insertions, 32 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/tclinstaller.tcl b/libraries/sqlite/unix/sqlite-3.5.1/tclinstaller.tcl
deleted file mode 100644
index 29d343e..0000000
--- a/libraries/sqlite/unix/sqlite-3.5.1/tclinstaller.tcl
+++ /dev/null
@@ -1,32 +0,0 @@
1# This script attempts to install SQLite3 so that it can be used
2# by TCL. Invoke this script with single argument which is the
3# version number of SQLite. Example:
4#
5# tclsh tclinstaller.tcl 3.0
6#
7set VERSION [lindex $argv 0]
8set LIBFILE .libs/libtclsqlite3[info sharedlibextension]
9if { ![info exists env(DESTDIR)] } { set env(DESTDIR) "" }
10if { ![info exists env(TCLLIBDIR)] } { set env(TCLLIBDIR) [lindex $auto_path 0] }
11set LIBDIR $env(DESTDIR)$env(TCLLIBDIR)
12set LIBDIR_INSTALL $env(TCLLIBDIR)
13set LIBNAME [file tail $LIBFILE]
14set LIB $LIBDIR/sqlite3/$LIBNAME
15set LIB_INSTALL $LIBDIR_INSTALL/sqlite3/$LIBNAME
16
17file delete -force $LIBDIR/sqlite3
18file mkdir $LIBDIR/sqlite3
19set fd [open $LIBDIR/sqlite3/pkgIndex.tcl w]
20puts $fd "package ifneeded sqlite3 $VERSION \[list load $LIB_INSTALL sqlite3\]"
21close $fd
22
23# We cannot use [file copy] because that will just make a copy of
24# a symbolic link. We have to open and copy the file for ourselves.
25#
26set in [open $LIBFILE]
27fconfigure $in -translation binary
28set out [open $LIB w]
29fconfigure $out -translation binary
30puts -nonewline $out [read $in]
31close $in
32close $out