We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7bfd1d commit 47157b5Copy full SHA for 47157b5
tool/upgrade.go
@@ -4,6 +4,7 @@ package main
4
5
import (
6
"archive/zip"
7
+ "bufio"
8
"bytes"
9
"fmt"
10
"io"
@@ -80,7 +81,18 @@ func main() {
80
81
f.Close()
82
log.Fatal(err)
83
}
- _, err = io.Copy(f, zr)
84
+ scanner := bufio.NewScanner(zr)
85
+ for scanner.Scan() {
86
+ text := scanner.Text()
87
+ if text == `#include "sqlite3.h"` {
88
+ text = `#include "sqlite3-binding.h"`
89
+ }
90
+ _, err = fmt.Fprintln(f, text)
91
+ if err != nil {
92
+ break
93
94
95
+ err = scanner.Err()
96
if err != nil {
97
zr.Close()
98
0 commit comments