mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-08 22:58:17 -04:00
DBD-SQLite: time to let getsqlite.pl fetch the amalgamated source
This commit is contained in:
parent
c9f3ea08ab
commit
f12011a5a0
1 changed files with 4 additions and 23 deletions
27
getsqlite.pl
27
getsqlite.pl
|
@ -12,22 +12,13 @@ if (getstore(
|
|||
}
|
||||
print("done\n");
|
||||
|
||||
rm_rf('sqlite');
|
||||
rm_rf('sqlite') || rm_rf("sqlite-$version");
|
||||
xsystem("tar zxvf sqlite.tar.gz");
|
||||
chdir("sqlite") || chdir("sqlite-$version") || die "SQLite directory not found";
|
||||
xsystem("sh configure --enable-utf8");
|
||||
xsystem("make parse.c sqlite3.h opcodes.h opcodes.c");
|
||||
eval { xsystem("make keywordhash.h") };
|
||||
|
||||
my %skip = map { $_ => 1 } map { chomp; $_ } <DATA>;
|
||||
warn("Skip: $_\n") for keys %skip;
|
||||
|
||||
foreach (<*.[ch]>, `find src -name \\*.[ch]`) {
|
||||
chomp;
|
||||
next if $skip{$_};
|
||||
next if /\btest.*\.c$/;
|
||||
xsystem("cp $_ ../");
|
||||
}
|
||||
xsystem("cp sqlite3.c ../");
|
||||
xsystem("cp sqlite3.h ../");
|
||||
xsystem("cp sqlite3ext.h ../");
|
||||
|
||||
exit(0);
|
||||
|
||||
|
@ -39,13 +30,3 @@ sub xsystem {
|
|||
die "system(@_) failed: $?";
|
||||
}
|
||||
}
|
||||
|
||||
__DATA__
|
||||
lempar.c
|
||||
src/threadtest.c
|
||||
src/tclsqlite.c
|
||||
src/shell.c
|
||||
src/lemon.c
|
||||
src/md5.c
|
||||
src/encode.c
|
||||
src/experimental.c
|
||||
|
|
Loading…
Add table
Reference in a new issue