diff options
| author | 2016-06-13 18:42:42 -0400 | |
|---|---|---|
| committer | 2016-06-13 18:42:42 -0400 | |
| commit | 5d9314f134ddd3dc4c853e398ac90ba247fb2e4f (patch) | |
| tree | 5c457fc188036988d7abd29a3eb09931e406510f /Plugins/DbSqliteCipher/add_prefix.sh | |
| parent | 8e640722c62692818ab840d50b3758f89a41a54e (diff) | |
Imported Upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'Plugins/DbSqliteCipher/add_prefix.sh')
| -rwxr-xr-x | Plugins/DbSqliteCipher/add_prefix.sh | 16 |
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 |
