#!/bin/bash COMMAND="${1}" VERSION=$(cat /lib/sapphrc/version) setup() { sapphrc_setup $@ } profile() { sapphrc_profile $@ } backup() { sapphrc_backup $@ } restore() { sapphrc_restore $@ } usage() { echo "Sapphic Package Manager v${VERSION}" cat ./usr/share/doc/sapphrc/sapphrc sed -e 's/^/ /' /usr/share/doc/sapphrc/sapphrc_setup sed -e 's/^/ /' /usr/share/doc/sapphrc/sapphrc_profile sed -e 's/^/ /' /usr/share/doc/sapphrc/sapphrc_backup sed -e 's/^/ /' /usr/share/doc/sapphrc/sapphrc_restore } case $COMMAND in setup|profile|backup|restore ) shift 1;;& setup ) setup $@;; profile ) profile $@;; backup ) backup $@;; restore ) restore $@;; *|usage ) usage;; esac