From 491306ddd3acce40b91b53008f04e429e7cfabf3 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Aug 14 2011 19:04:29 +0000 Subject: Update `tuneup' functionality: - When it be possible, don't use variable expansion on function invocations. That would suppress the tags indexing feautre for those functions. --- diff --git a/Scripts/Functions/Tuneup/Shell/shell.sh b/Scripts/Functions/Tuneup/Shell/shell.sh index 3b93a7d..3dd3023 100755 --- a/Scripts/Functions/Tuneup/Shell/shell.sh +++ b/Scripts/Functions/Tuneup/Shell/shell.sh @@ -30,6 +30,6 @@ function shell { # Rebuild top comment inside shell scripts, mainly to update # copyright information. - ${TUNEUP_BACKEND}_doTopComment + shell_doTopComment } diff --git a/Scripts/Functions/Tuneup/Svg/svg.sh b/Scripts/Functions/Tuneup/Svg/svg.sh index 19a766b..9420e07 100755 --- a/Scripts/Functions/Tuneup/Svg/svg.sh +++ b/Scripts/Functions/Tuneup/Svg/svg.sh @@ -25,12 +25,12 @@ function svg { # Define backend-specific configuration directory. - local CONFIG_DIR="${TUNEUP_BACKEND_DIR}/$(cli_getRepoName ${TUNEUP_BACKEND} -d)/Config" + local CONFIG_DIR="${TUNEUP_BACKEND_DIR}/Svg/Config" # Update metadata information. - ${TUNEUP_BACKEND}_doMetadata + svg_doMetadata # Remove all unused items. - ${TUNEUP_BACKEND}_doVacuumDefs + svg_doVacuumDefs } diff --git a/Scripts/Functions/Tuneup/Xhtml/xhtml.sh b/Scripts/Functions/Tuneup/Xhtml/xhtml.sh index f3e81bc..28567ef 100755 --- a/Scripts/Functions/Tuneup/Xhtml/xhtml.sh +++ b/Scripts/Functions/Tuneup/Xhtml/xhtml.sh @@ -26,7 +26,7 @@ function xhtml { # Define backend-specific configuration directory. - local CONFIG_DIR="${TUNEUP_BACKEND_DIR}/$(cli_getRepoName ${TUNEUP_BACKEND} -d)/Config" + local CONFIG_DIR="${TUNEUP_BACKEND_DIR}/Xhtml/Config" # Transforms xhtml headings to make them accessible (e.g., through # a table of contents). diff --git a/Scripts/Functions/Tuneup/tuneup.sh b/Scripts/Functions/Tuneup/tuneup.sh index 475aa15..644f69b 100755 --- a/Scripts/Functions/Tuneup/tuneup.sh +++ b/Scripts/Functions/Tuneup/tuneup.sh @@ -43,7 +43,7 @@ function tuneup { local TUNEUP_EXTENSIONS='svg xhtml sh' # Interpret arguments and options passed through command-line. - ${CLI_FUNCNAME}_getOptions + tuneup_getOptions # Redefine positional parameters using ARGUMENTS. At this point, # option arguments have been removed from ARGUMENTS variable and @@ -54,7 +54,7 @@ function tuneup { # centos-art, there is only one action to perform (i.e., build the # list of files and interpretation of file extensions for further # processing). - ACTIONNAM="${CLI_FUNCNAME}_doBaseActions" + ACTIONNAM="tuneup_doBaseActions" # Define action value. We use non-option arguments to define the # action value (ACTIONVAL) variable.