From 566138139dbb4b9826917226f2c83caeb4f20232 Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Fri, 23 Jul 2010 11:48:56 +0200 Subject: wrote build script + fixed bugs installation bugs --- install.sh | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 40499af..c415e52 100644 --- a/install.sh +++ b/install.sh @@ -10,6 +10,19 @@ fugitive_write_template() { replace_var_by_string year "`date +%Y`" } +fugitive_install_hooks() { + echo -n "Installing fugitive hooks scripts... " + (base64 -d | gunzip) > .git/hooks/post-commit < .git/hooks/post-receive </dev/null echo "done." echo -n "Creating default directory tree... " - mkdir -p fugitive/{drafts,articles,templates} + mkdir -p fugitive/drafts fugitive/articles fugitive/templates echo "done." echo -n "Adding default directory paths to git config... " git config --add --path fugitive.templates-dir "fugitive/templates" @@ -35,20 +48,11 @@ EOF EOF echo "done." echo -n "Writing default css file... " - (base64 -d | gunzip) > fugitice.css < fugitive.css < .git/hooks/post-commit < .git/hooks/post-receive </dev/null git commit -m "fugitive inital import" >/dev/null @@ -56,7 +60,7 @@ EOF echo -n "Preventing git to track temp files... " echo "*~" > .git/info/exclude echo "done." - cd - + cd - >/dev/null echo "Installation complete, please see the README file for an howto." } -- cgit v1.2.3