diff options
author | p4bl0 <pablo@rauzy.name> | 2010-09-04 23:18:25 +0200 |
---|---|---|
committer | p4bl0 <pablo@rauzy.name> | 2010-09-04 23:18:25 +0200 |
commit | c044292f9e1bc38bb4a03c9c7a18173cd8fdd91d (patch) | |
tree | f0559cb4542db0bc1260f69cc7842a3f3c07b561 | |
parent | a29a6eb50efbbb49eb9f5562dc1e88f492caeb56 (diff) |
wrote some quick and dirty help and usage message
-rw-r--r-- | install.sh | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -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 |