aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/DbSqliteSystemData/fix_files.tcl
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2018-07-27 23:54:15 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2018-07-27 23:54:15 -0400
commit6d3d39356473078c6b47e03b8a7616e4b34de928 (patch)
treefe5be2e6a08e4cfc73207746aba4c9fccfecfa10 /Plugins/DbSqliteSystemData/fix_files.tcl
parentf98e49169a40876bcf1df832de6e908d1b350193 (diff)
parentfeda8a7db8d1d7c5439aa8f8feef7cc0dd2b59a0 (diff)
Update upstream source from tag 'upstream/3.2.1+dfsg1'
Update to upstream version '3.2.1+dfsg1' with Debian dir 5ea0333565de4dc898c062cc0ff4ba1153e2c1e4
Diffstat (limited to 'Plugins/DbSqliteSystemData/fix_files.tcl')
-rw-r--r--Plugins/DbSqliteSystemData/fix_files.tcl37
1 files changed, 37 insertions, 0 deletions
diff --git a/Plugins/DbSqliteSystemData/fix_files.tcl b/Plugins/DbSqliteSystemData/fix_files.tcl
new file mode 100644
index 0000000..d67abd0
--- /dev/null
+++ b/Plugins/DbSqliteSystemData/fix_files.tcl
@@ -0,0 +1,37 @@
+#!/usr/bin/env tclsh
+
+proc process {f} {
+ set shortName [string map [list systemdata_ ""] $f]
+ if {[file exists $shortName]} {
+ file rename -force $shortName $f
+ }
+
+ set fd [open $f r]
+ set data [read $fd]
+ close $fd
+
+ #set data [string map [list systemdata_systemdata_ systemdata_] $data]
+ set data [string map [list \
+ sqlite3 systemdata_sqlite3 \
+ ../core/ "" \
+ interop.h systemdata_interop.h \
+ ../win/crypt.c systemdata_crypt.c \
+ ../contrib/extension-functions.c systemdata_extension-functions.c \
+ ] $data]
+
+ set fd [open $f w]
+ puts $fd $data
+ close $fd
+}
+
+foreach f {
+ systemdata_sqlite3.c
+ systemdata_sqlite3.h
+ systemdata_sqlite3ext.h
+ systemdata_interop.c
+ systemdata_interop.h
+ systemdata_extension-functions.c
+ systemdata_crypt.c
+} {
+ process $f
+}