Add make-db script

This commit is contained in:
Michael Hohn
2023-12-01 14:28:03 -08:00
committed by =Michael Hohn
parent 9565629463
commit d02e26d6d2

15
cruft/make-db Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
cd ~/local/codeql-javascript-multiflow/
DB=./js-sqli-db-$(git rev-parse --short HEAD)
echo $DB
test -d "$DB" && rm -fR "$DB"
mkdir -p "$DB"
codeql database create --language=javascript -s . -j 8 -v $DB
# Check it
echo "The DB is in $DB"
echo "Content check:"
unzip -v $DB/src.zip |egrep '(add|sample)'