2024-01-01 19:01:29 +01:00
|
|
|
#!/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-07 10:23:23 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-02-07 10:34:55 +01:00
|
|
|
rm installed.txt # Clean up
|
|
|
|
|
2024-01-01 19:01:29 +01:00
|
|
|
python3 generator.py
|
2024-02-06 16:16:45 +01:00
|
|
|
cd ./site/ || exit
|
2024-01-01 19:01:29 +01:00
|
|
|
mkdocs build
|
|
|
|
rsync --include ".*" -v -rz --checksum site/ circl@cppz.circl.lu:/var/www/misp-galaxy.org
|