From c044292f9e1bc38bb4a03c9c7a18173cd8fdd91d Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Sat, 4 Sep 2010 23:18:25 +0200 Subject: wrote some quick and dirty help and usage message --- install.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 4545954..2e97d6f 100644 --- a/install.sh +++ b/install.sh @@ -112,10 +112,28 @@ EOF cd - >/dev/null } +fugitive_usage() { + echo "This is fugitive installation script." + echo "To install a local (where you commit) repository of your blog run:" + echo " fugitive --install-local " + echo -n "where is where you want the installation to take place, " + echo "it's in the working directory by defaults." + echo "To install a remote (where you push) repository of your blog run:" + echo " fugitive --install-remote " + echo -n "where is where you want the installation to take place, " + echo "it's in the working directory by defaults." +} + +fugitive_help() { + echo -n "fugitive is a blog engine running on top of git using hooks to " + echo "generate static html pages and thus having only git as dependency." + fugitive_usage +} + case "$1" in - "--help"|"-h") fugitive_help >&2;; # TODO + "--help"|"-h") fugitive_help >&2;; "--install"|"--install-local") fugitive_install "$2" "local";; "--install-remote") fugitive_install "$2" "remote";; "--install-hooks") fugitive_install_hooks;; - *) fugitive_usage >&2;; # TODO + *) fugitive_usage >&2;; esac -- cgit v1.2.3