42 lines
728 B
Bash
42 lines
728 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
mkdir -p output
|
||
|
|
||
|
echo "Using $OUTPUT_DIR as output directory..."
|
||
|
echo "Using $CALENDAR_URL as Nextcloud calendar URL..."
|
||
|
|
||
|
clone_repos() {
|
||
|
if ! type git > /dev/null 2>&1; then
|
||
|
apk add --no-cache git
|
||
|
fi
|
||
|
git clone https://git.autonomic.zone/ruangrupa/lumbung-video-prototype
|
||
|
git clone https://git.autonomic.zone/ruangrupa/lumbung-calendar-prototype
|
||
|
}
|
||
|
|
||
|
install_deps() {
|
||
|
cd lumbung-video-prototype
|
||
|
pip install -r requirements.txt
|
||
|
cd -
|
||
|
|
||
|
cd lumbung-calendar-prototype
|
||
|
pip install -r requirements.txt
|
||
|
cd -
|
||
|
}
|
||
|
|
||
|
gen_vid() {
|
||
|
cd lumbung-video-prototype
|
||
|
python video-feed.py
|
||
|
cd -
|
||
|
}
|
||
|
|
||
|
gen_cal() {
|
||
|
cd lumbung-calendar-prototype
|
||
|
python event-feed.py
|
||
|
cd -
|
||
|
}
|
||
|
|
||
|
clone_repos
|
||
|
install_deps
|
||
|
gen_vid
|
||
|
gen_cal
|