misp-galaxy/tools/mkdocs/build.sh

22 lines
598 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2024-02-07 10:23:23 +01:00
requirements_path="requirements.txt"
2024-02-07 10:34:55 +01:00
pip freeze > installed.txt
diff -u <(sort $requirements_path) <(sort installed.txt)
2024-02-07 10:23:23 +01:00
2024-02-07 10:34:55 +01:00
if [ $? -eq 0 ]; then
2024-02-07 10:23:23 +01:00
echo "All dependencies are installed with correct versions."
else
2024-02-07 10:34:55 +01:00
echo "Dependencies missing or with incorrect versions. Please install all dependencies from $requirements_path into your environment."
rm installed.txt # Clean up
2024-02-23 12:30:45 +01:00
# exit 1
2024-02-07 10:23:23 +01:00
fi
2024-02-07 10:34:55 +01:00
rm installed.txt # Clean up
python3 generator.py
2024-02-06 16:16:45 +01:00
cd ./site/ || exit
mkdocs build
2024-02-23 12:30:45 +01:00
rsync --include ".*" -avh --delete -rz --checksum site/ circl@cppz.circl.lu:/var/www/misp-galaxy.org