summaryrefslogtreecommitdiffstats
path: root/Plugins/DbSqliteWx/add_prefix.sh
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2017-02-09 04:36:04 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2017-02-09 04:36:04 -0500
commitd9aa870e5d509cc7309ab82dd102a937ab58613a (patch)
treed92d03d76b5c390b335f1cfd761f1a0b59ec8496 /Plugins/DbSqliteWx/add_prefix.sh
parent68ee4cbcbe424b95969c70346283a9f217f63825 (diff)
Imported Upstream version 3.1.1+dfsg1upstream/3.1.1+dfsg1
Diffstat (limited to 'Plugins/DbSqliteWx/add_prefix.sh')
-rw-r--r--Plugins/DbSqliteWx/add_prefix.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/Plugins/DbSqliteWx/add_prefix.sh b/Plugins/DbSqliteWx/add_prefix.sh
new file mode 100644
index 0000000..e04f3e5
--- /dev/null
+++ b/Plugins/DbSqliteWx/add_prefix.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env tclsh
+
+proc process {f} {
+ set fd [open $f r]
+ set data [read $fd]
+ close $fd
+
+ set data [string map [list sqlite3 wx_sqlite3] $data]
+
+ set fd [open $f w]
+ puts $fd $data
+ close $fd
+}
+
+foreach f {
+ wxsqlite3.c
+ wxsqlite3.h
+ sqlite3ext.h
+ sqlite3secure.c
+ sqlite3userauth.h
+ userauth.c
+ extensionfunctions.c
+ codec.c
+ codec.h
+ codecext.c
+ csv.c
+ rijndael.c
+ rijndael.h
+ sha2.h
+ sha2.c
+} {
+ process $f
+}