]> git.donarmstrong.com Git - bugscan.git/blobdiff - dohtml
name parameters to make code easier to understand
[bugscan.git] / dohtml
diff --git a/dohtml b/dohtml
index 8315a3820f38e66cc869f72032a82f51c7a3b0f2..cbef6c091443b518a7bee465a0ccab2c9dc6f07f 100755 (executable)
--- a/dohtml
+++ b/dohtml
@@ -30,6 +30,13 @@ Please contact
 EOF
 }
 
+html_closing_tags() {
+       cat <<EOF
+</body>
+</html>
+EOF
+}
+
 realmakepage() {
        local   filter="$1"     # Distributions to list
        local   title="$2"      # Title of page
@@ -87,13 +94,12 @@ EOF
 
        html_page_creation_notice
 
-       cat <<EOF
-</body>
-</html>
-EOF
+       html_closing_tags
 }
 
 makemainpage() {
+       local   title="$1"      # Title of page
+       local   time="$2"       # Date
 
        header "$title" "$time"
 
@@ -157,6 +163,8 @@ To receive all mails sent to release-critical bugs, subscribe to the
 mailing list.
 
 EOF
+
+       html_closing_tags
 }
 
 makepage() {
@@ -180,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