зеркало из https://github.com/github/codeql.git
QL: Rename extractor to codeql-extractor-ql
This commit is contained in:
Родитель
ab4eba11ec
Коммит
30468dd059
|
@ -182,7 +182,7 @@ dependencies = [
|
|||
]
|
||||
|
||||
[[package]]
|
||||
name = "codeql-ql-extractor"
|
||||
name = "codeql-extractor-ql"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "codeql-ql-extractor"
|
||||
name = "codeql-extractor-ql"
|
||||
version = "0.1.0"
|
||||
authors = ["GitHub"]
|
||||
edition = "2018"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
cargo build --release
|
||||
|
||||
cargo run --release --bin codeql-ql-extractor -- generate --dbscheme ql/src/ql.dbscheme --library ql/src/codeql_ql/ast/internal/TreeSitter.qll
|
||||
cargo run --release --bin codeql-extractor-ql -- generate --dbscheme ql/src/ql.dbscheme --library ql/src/codeql_ql/ast/internal/TreeSitter.qll
|
||||
codeql query format -i ql\src\codeql_ql\ast\internal\TreeSitter.qll
|
||||
|
||||
if (Test-Path -Path extractor-pack) {
|
||||
|
@ -10,4 +10,4 @@ mkdir extractor-pack | Out-Null
|
|||
cp codeql-extractor.yml, ql\src\ql.dbscheme, ql\src\ql.dbscheme.stats extractor-pack
|
||||
cp -Recurse tools extractor-pack
|
||||
mkdir extractor-pack\tools\win64 | Out-Null
|
||||
cp target\release\codeql-ql-extractor.exe extractor-pack\tools\win64\extractor.exe
|
||||
cp target\release\codeql-extractor-ql.exe extractor-pack\tools\win64\extractor.exe
|
||||
|
|
|
@ -20,11 +20,11 @@ else
|
|||
fi
|
||||
|
||||
cargo build --release
|
||||
cargo run --release --bin codeql-ql-extractor -- generate --dbscheme ql/src/ql.dbscheme --library ql/src/codeql_ql/ast/internal/TreeSitter.qll
|
||||
cargo run --release --bin codeql-extractor-ql -- generate --dbscheme ql/src/ql.dbscheme --library ql/src/codeql_ql/ast/internal/TreeSitter.qll
|
||||
$CODEQL_BINARY query format -i ql/src/codeql_ql/ast/internal/TreeSitter.qll
|
||||
|
||||
rm -rf extractor-pack
|
||||
mkdir -p extractor-pack
|
||||
cp -r codeql-extractor.yml tools ql/src/ql.dbscheme ql/src/ql.dbscheme.stats extractor-pack/
|
||||
mkdir -p extractor-pack/tools/${platform}
|
||||
cp target/release/codeql-ql-extractor extractor-pack/tools/${platform}/extractor
|
||||
cp target/release/codeql-extractor-ql extractor-pack/tools/${platform}/extractor
|
||||
|
|
Загрузка…
Ссылка в новой задаче