QL: Rename extractor to codeql-extractor-ql

This commit is contained in:
Harry Maclean 2023-04-19 06:30:09 +00:00
Родитель ab4eba11ec
Коммит 30468dd059
4 изменённых файлов: 6 добавлений и 6 удалений

2
ql/Cargo.lock сгенерированный
Просмотреть файл

@ -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