vdirsyncer/install-deps.sh
Markus Unterwaditzer 2a13ca4c29 Strict POSIX scripts
Ubuntu uses dash as default shell, wish somebody told me :/
2014-03-19 22:31:04 +01:00

35 lines
798 B
Bash
Executable file

#!/bin/sh
echo "The shell is $SHELL"
set -e
pip install --use-mirrors --editable .
pip install --use-mirrors -r requirements.txt
[ -n "$DAV_SERVER" ] || DAV_SERVER=radicale_filesystem
davserver_radicale_filesystem() {
radicale_deps
}
davserver_radicale_database() {
radicale_deps
pip install --use-mirrors sqlalchemy pysqlite
}
radicale_deps() {
if [ "$REQUIREMENTS" = "release" ]; then
radicale_pkg="radicale"
elif [ "$REQUIREMENTS" = "devel" ]; then
radicale_pkg="git+https://github.com/Kozea/Radicale.git"
else
false
fi
pip install --use-mirrors werkzeug $radicale_pkg
}
davserver_owncloud() {
git clone https://github.com/untitaker/owncloud-testserver.git
cd ./owncloud-testserver/
sh install.sh
}
davserver_$DAV_SERVER