From 3dc4a1da6416fda2c0c308911e250e29971cc2d0 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Feb 17 2011 16:45:15 +0000 Subject: Update html_updateHeadings.sh. --- diff --git a/Scripts/Bash/Functions/Html/html_updateHeadings.sh b/Scripts/Bash/Functions/Html/html_updateHeadings.sh index 698181b..e62b536 100644 --- a/Scripts/Bash/Functions/Html/html_updateHeadings.sh +++ b/Scripts/Bash/Functions/Html/html_updateHeadings.sh @@ -42,6 +42,8 @@ function html_updateHeadings { # Define variables as local to avoid conflicts outside. local COUNT=0 + local FILE='' + local FILES='' local PREVCOUNT=0 local PATTERN='' local -a FINAL @@ -57,6 +59,13 @@ function html_updateHeadings { # to save html action name, action value, and heading title. PATTERN="(]>)(.*[^<])" + # Redefine filter flag to specify the extension of html files the + # headings and table of content are built for and so limiting the + # list of files to process to the number of files we want to + # produce headings and table of content for. Use action value as + # reference to find out different shell files. + FLAG_FILTER=".*${FLAG_FILTER}.*\.(xhtml|html|htm)" + # Define list of files to process. cli_getFilesList