misp-galaxy/tools/mkdocs/build.sh

22 lines
598 B
Bash
Raw Normal View History

#!/bin/bash
2024-02-07 09:23:23 +00:00
requirements_path="requirements.txt"
2024-02-07 09:34:55 +00:00
pip freeze > installed.txt
diff -u <(sort $requirements_path) <(sort installed.txt)
2024-02-07 09:23:23 +00:00
2024-02-07 09:34:55 +00:00
if [ $? -eq 0 ]; then
2024-02-07 09:23:23 +00:00
echo "All dependencies are installed with correct versions."
else
2024-02-07 09:34:55 +00: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 11:30:45 +00:00
# exit 1
2024-02-07 09:23:23 +00:00
fi
2024-02-07 09:34:55 +00:00
rm installed.txt # Clean up
python3 generator.py
2024-02-06 15:16:45 +00:00
cd ./site/ || exit
mkdocs build
2024-02-23 11:30:45 +00:00
rsync --include ".*" -avh --delete -rz --checksum site/ circl@cppz.circl.lu:/var/www/misp-galaxy.org