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