liboqs/scripts/run_doxygen.sh
Spencer Wilson 526506f67a
Add references to security response process (#2077)
* Add link to security response process [skip ci]

Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>

* Add security support info to PLATFORMS.md [skip ci]

Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>

* Add SECURITY.md to Doxyfile

Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>

* Fix links for Doxygen

Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>

---------

Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
2025-03-07 17:40:57 -05:00

29 lines
633 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: MIT
if [ "$#" -ne 3 ]; then
echo "Wrong number of arguments: Expecting path to doxygen binary, path to doxygen file, and destination directory. Exiting."
exit 1
fi
# Doxygen can't handle Github Markdown so we temporarily reformat it
for file in README.md CONFIGURE.md SECURITY.md
do
cp $file $file-orig
python3 scripts/doxyfy.py $file-orig $file
done
# run doxygen:
mkdir -p "$3/docs"
env DOXYGEN_DESTIONATION_DIR="$3/docs" "$1" "$2"
EXITCODE=$?
# undo the Github Markdown reformatting
for file in README.md CONFIGURE.md SECURITY.md
do
mv $file-orig $file
done
exit ${EXITCODE}