name parameters to make code easier to understand
authorTomas Pospisek <tpo_hp@sourcepole.ch>
Sat, 24 Jan 2015 00:17:33 +0000 (01:17 +0100)
committerTomas Pospisek <tpo_hp@sourcepole.ch>
Sat, 24 Jan 2015 21:37:21 +0000 (22:37 +0100)
dohtml

diff --git a/dohtml b/dohtml
index 07e5bb3..cbef6c0 100755 (executable)
--- a/dohtml
+++ b/dohtml
@@ -98,6 +98,8 @@ EOF
 }
 
 makemainpage() {
+       local   title="$1"      # Title of page
+       local   time="$2"       # Date
 
        header "$title" "$time"
 
@@ -186,6 +188,6 @@ makepage "" "$title" "$htmldir/other/stable.html" "$time" "-b"
 makepage "" "$title" "$htmldir/other/testing.html" "$time" "-t"
 makepage "" "$title" "$htmldir/other/pseudo.html" "$time" "pseudo"
 
-makemainpage > $htmldir/index.html.new
+makemainpage "$title" "$time" > $htmldir/index.html.new
 mv -f $htmldir/index.html.new $htmldir/index.html