#!/bin/bash set -e CMD=$1 if [ -z "$CMD" ]; then echo -e "rospo :: publish data to andrefincato.info\n" echo -e "Usage:\n" echo " --add-worklog: make a worklog entry using worklog-new.sh under /worklog/" echo " --build-page: make a page using build-page.sh and place it at the root level" echo -e " --publish: both git-push and rsync html content over to the server\n" fi case $CMD in "--add-worklog") echo "running add-worklog.sh..." ./add-worklog.sh ;; "--build-page") echo "runing build-page.sh..." ./build-page.sh ;; "--publish") echo "running publish.sh..." ./publish.sh ;; *) esac