summaryrefslogtreecommitdiffstats
path: root/Plugins/DbSqliteCipher/add_prefix.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/DbSqliteCipher/add_prefix.sh')
-rwxr-xr-xPlugins/DbSqliteCipher/add_prefix.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/Plugins/DbSqliteCipher/add_prefix.sh b/Plugins/DbSqliteCipher/add_prefix.sh
new file mode 100755
index 0000000..23ecf2a
--- /dev/null
+++ b/Plugins/DbSqliteCipher/add_prefix.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env tclsh
+
+proc process {f} {
+ set fd [open $f r]
+ set data [read $fd]
+ close $fd
+
+ set data [string map [list sqlite3 sqlcipher_sqlite3] $data]
+
+ set fd [open $f w]
+ puts $fd $data
+ close $fd
+}
+
+process sqlcipher.c
+process sqlcipher.h