mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
14 lines
270 B
Bash
Executable File
14 lines
270 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo "Usage: qhelp-to-markdown.sh qhelp-directory out-directory"
|
|
exit 1
|
|
fi
|
|
|
|
for qh in $(find $1 -name "*.qhelp"); do
|
|
mkdir -p $2/$(dirname $qh)
|
|
codeql generate query-help --format=markdown $qh > $2/${qh/qhelp/md}
|
|
done
|