Files

45 lines
825 B
Bash
Raw Permalink Normal View History

2026-06-09 09:19:38 +02:00
#!/bin/bash
if ! [[ "$1" =~ ^(install|bib|cal|output|all|clean) ]]; then
echo "usage: $0 [action]"
echo "where action can be: [install|bib|cal|output|all|clean]"
exit 1
fi
case $1 in
install)
echo "intalling virtual environment"
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
echo "make sure to edit the config file conf.edit-me.yml"
;;
bib)
echo "fetching bibliography"
python fetch_bib.py
;;
cal)
echo "fetching calendar"
python fetch_ics.py
;;
output)
echo "creating output"
python make.py
;;
all)
echo "fetching calendar + bibliography + creating output"
python fetch_bib.py
python fetch_ics.py
python make.py
;;
clean)
echo "cleaning virtual environment"
rm -rf venv
rm -rf __pycache__
;;
esac