From a4de1eb7869caba6d9020e3f9cc7a817dfc74241 Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Sun, 25 Jul 2010 00:57:27 +0200 Subject: using new include feature in default templates. Reorganised files accordingly --- install.sh | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 7cd45a2..640a4d8 100644 --- a/install.sh +++ b/install.sh @@ -1,13 +1,13 @@ #!/bin/sh -replace_var_by_string() { +replace_string() { sed "s//$2/" } fugitive_write_template() { name=`git config --get user.name` - base64 -d | gunzip | replace_var_by_string name "$name" | \ - replace_var_by_string year "`date +%Y`" + base64 -d | gunzip | replace_string "name" "$name" | \ + replace_string "year" "`date +%Y`" } fugitive_install_hooks() { @@ -46,10 +46,16 @@ fugitive_install() { echo "done." echo -n "Writing default template files... " fugitive_write_template > _templates/article.html < _templates/archives.html < _templates/nav-header.html < _templates/footer.html < fugitive.css < print.css <