summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorp4bl0 <pablo@rauzy.name>2010-09-04 23:18:25 +0200
committerp4bl0 <pablo@rauzy.name>2010-09-04 23:18:25 +0200
commitc044292f9e1bc38bb4a03c9c7a18173cd8fdd91d (patch)
treef0559cb4542db0bc1260f69cc7842a3f3c07b561
parenta29a6eb50efbbb49eb9f5562dc1e88f492caeb56 (diff)
wrote some quick and dirty help and usage message
-rw-r--r--install.sh22
1 files 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 <dir>"
+ echo -n "where <dir> 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 <dir>"
+ echo -n "where <dir> 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