]> Kevux Git Server - kevux-tools/commitdiff
Update: Remove the ++first and ++last parameters and relating logic.
authorKevin Day <Kevin@kevux.org>
Thu, 23 May 2024 04:34:24 +0000 (23:34 -0500)
committerKevin Day <Kevin@kevux.org>
Thu, 23 May 2024 04:34:24 +0000 (23:34 -0500)
I have used this for a while and have decided these are not worth the effort.
The addition is very nice but the additional code and logic is just extra maintenance and complexity for very little gain.

documents/readme.remove.txt
install.sh
sources/c/remove/main/common.c
sources/c/remove/main/common/enumeration.h
sources/c/remove/main/print/error.h
sources/c/tacocat/main/common.c
sources/c/tacocat/main/common/enumeration.h
sources/c/tacocat/main/print/warning.h

index 55966a08706d63261e11acff9e230fc58e2c23c2..650f16c3ab26d40fe55c71ad8f19dd07e3973af3 100644 (file)
@@ -20,10 +20,6 @@ Remove Readme Documentation:
   When any of the file type parameters are specified, then the default behavior is completely overwritten.
   Once a single file type parameter is specified, then the removals happen for all specified file type parameters combined.
 
-  The standard code:"FLL-0.6" help options are supported and two of the code:"FLL-0.7" options are brought in (code:"--line_first_no" and code:"--line_last_no").
-  The code:"--line_first_no" parameter suppresses printing the first line that is not data related.
-  The code:"--line_last_no" parameter suppresses printing the last line that is not data related.
-
   The bold:"remove" program has the following arguments\:
 
   The code:"--block" (code:"-b") parameter is a file type parameter that restricts removal to block device files.
index b845f67b835a9c31f3340346f0583b27f818e162..c820acfbc6831863bd9e7cbab79941a5613d855a 100755 (executable)
@@ -43,7 +43,7 @@ install_main() {
   local c_subtle="\\033[1;30m"
   local c_prefix="\\"
 
-  local failure=
+  local failure=0
   local operation=
   local operation_failure=
   local verbosity=normal
@@ -81,8 +81,6 @@ install_main() {
   local enable_static_programs="yes"
   local enable_static_libraries="yes"
   local enable_includes="yes"
-  local print_line_first="yes"
-  local print_line_last="yes"
 
   if [[ $# -gt 0 ]] ; then
     t=$#
@@ -130,10 +128,6 @@ install_main() {
           verbosity="debug"
           verbose="+D"
           verbose_common="-v"
-        elif [[ ${p} == "+F" || ${p} == "++line_first_no" ]] ; then
-          print_line_first="no"
-        elif [[ ${p} == "+L" || ${p} == "++line_last_no" ]] ; then
-          print_line_last="no"
         elif [[ ${p} == "+v" || ${p} == "++version" ]] ; then
           echo ${version}
           return 0
@@ -227,11 +221,6 @@ install_main() {
     p=
   fi
 
-  if [[ ${verbosity} == "quiet" ]] ; then
-    print_line_first="no"
-    print_line_last="no"
-  fi
-
   install_handle_colors
 
   if [[ ${do_help} == "yes" ]] ; then
@@ -250,11 +239,7 @@ install_main() {
 
   if [[ ${operation_failure} == "fail-unsupported" ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The operation ${c_notice}${operation}${c_error} was not recognized.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -264,11 +249,7 @@ install_main() {
 
   if [[ ! -d ${path_build} ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The build path ${c_notice}${path_build}${c_error} is not a valid directory.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -278,11 +259,7 @@ install_main() {
 
   if [[ ${work} == "" && ${destination_prefix} != "" && ! -d ${destination_prefix} ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The destination prefix ${c_notice}${destination_prefix}${c_error} is not a valid directory.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -346,11 +323,7 @@ install_main() {
 
   if [[ ${work} != "" && ! -d ${work} ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The work directory ${c_notice}${work}${c_error} is not a valid directory.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -360,11 +333,7 @@ install_main() {
 
   if [[ ${work} == "" && -e ${destination_programs} && ! -d ${destination_programs} ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The destination bindir ${c_notice}${destination_programs}${c_error} is not a valid directory.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -374,11 +343,7 @@ install_main() {
 
   if [[ ${work} == "" && -e ${destination_programs_static} && ! -d ${destination_programs_static} ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The destination (${c_notice}static${c_error}) bindir ${c_notice}${destination_programs_static}${c_error} is not a valid directory.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -388,11 +353,7 @@ install_main() {
 
   if [[ ${work} == "" && -e ${destination_programs_shared} && ! -d ${destination_programs_shared} ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The destination (${c_notice}shared${c_error}) bindir ${c_notice}${destination_programs_shared}${c_error} is not a valid directory.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -402,11 +363,7 @@ install_main() {
 
   if [[ ${work} == "" && -e ${destination_includes} && ! -d ${destination_includes} ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The destination incluedir ${c_notice}${destination_includes}${c_error} is not a valid directory.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -416,11 +373,7 @@ install_main() {
 
   if [[ ${work} == "" && -e ${destination_libraries_static} && ! -d ${destination_libraries_static} ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The destination (${c_notice}static${c_error}) libdir ${c_notice}${destination_libraries_static}${c_error} is not a valid directory.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -430,11 +383,7 @@ install_main() {
 
   if [[ ${work} == "" && -e ${destination_libraries_shared} && ! -d ${destination_libraries_shared} ]] ; then
     if [[ ${verbosity} != "quiet" ]] ; then
-      install_print_first
-
       echo -e "${c_error}ERROR: The destination (${c_notice}shared${c_error}) libdir ${c_notice}${destination_libraries_shared}${c_error} is not a valid directory.${c_reset}"
-
-      install_print_last
     fi
 
     install_cleanup
@@ -444,19 +393,13 @@ install_main() {
 
   install_perform_install
 
-  if [[ ${verbosity} != "quiet" ]] ; then
-    if [[ ${failure} != "" || ${verbosity} != "error" ]] ; then
-      install_print_last
-    fi
-  fi
-
   install_cleanup
 
-  if [[ ${failure} == "" ]] ; then
-    return 0
+  if [[ ${failure} -eq 1 ]] ; then
+    return 1
   fi
 
-  return 1
+  return 0
 }
 
 install_handle_colors() {
@@ -483,27 +426,23 @@ install_handle_colors() {
 
 install_help() {
 
-  install_print_first
-
   echo -e "${c_title}${public_name}${c_reset}"
   echo -e " ${c_notice}Version ${version}${c_reset}"
   echo
   echo -e "${c_highlight}${system_name}${c_reset} ${c_notice}[${c_reset} options ${c_notice}]${c_reset}"
   echo
   echo -e "${c_highlight}Options:${c_reset}"
-  echo -e " -${c_important}h${c_reset}, --${c_important}help${c_reset}           Print this help message."
-  echo -e " +${c_important}C${c_reset}, ++${c_important}copyright${c_reset}      Print the copyright."
-  echo -e " +${c_important}d${c_reset}, ++${c_important}dark${c_reset}           Output using colors that show up better on dark backgrounds."
-  echo -e " +${c_important}l${c_reset}, ++${c_important}light${c_reset}          Output using colors that show up better on light backgrounds."
-  echo -e " +${c_important}n${c_reset}, ++${c_important}no_color${c_reset}       Do not print using color."
-  echo -e " +${c_important}Q${c_reset}, ++${c_important}quiet${c_reset}          Decrease verbosity, silencing most print.to."
-  echo -e " +${c_important}E${c_reset}, ++${c_important}error${c_reset}          Decrease verbosity, using only error print.to."
-  echo -e " +${c_important}N${c_reset}, ++${c_important}normal${c_reset}         Set verbosity to normal."
-  echo -e " +${c_important}V${c_reset}, ++${c_important}verbose${c_reset}        Increase verbosity beyond normal print.to."
-  echo -e " +${c_important}D${c_reset}, ++${c_important}debug${c_reset}          Enable debugging, significantly increasing verbosity beyond normal print.to."
-  echo -e " +${c_important}v${c_reset}, ++${c_important}version${c_reset}        Print only the version number."
-  echo -e " +${c_important}F${c_reset}, ++${c_important}line_first_no${c_reset}  Disable printing of first line."
-  echo -e " +${c_important}L${c_reset}, ++${c_important}line_last_no${c_reset}   Disable printing of last line."
+  echo -e " -${c_important}h${c_reset}, --${c_important}help${c_reset}       Print this help message."
+  echo -e " +${c_important}C${c_reset}, ++${c_important}copyright${c_reset}  Print the copyright."
+  echo -e " +${c_important}d${c_reset}, ++${c_important}dark${c_reset}       Output using colors that show up better on dark backgrounds."
+  echo -e " +${c_important}l${c_reset}, ++${c_important}light${c_reset}      Output using colors that show up better on light backgrounds."
+  echo -e " +${c_important}n${c_reset}, ++${c_important}no_color${c_reset}   Do not print using color."
+  echo -e " +${c_important}Q${c_reset}, ++${c_important}quiet${c_reset}      Decrease verbosity, silencing most print.to."
+  echo -e " +${c_important}E${c_reset}, ++${c_important}error${c_reset}      Decrease verbosity, using only error print.to."
+  echo -e " +${c_important}N${c_reset}, ++${c_important}normal${c_reset}     Set verbosity to normal."
+  echo -e " +${c_important}V${c_reset}, ++${c_important}verbose${c_reset}    Increase verbosity beyond normal print.to."
+  echo -e " +${c_important}D${c_reset}, ++${c_important}debug${c_reset}      Enable debugging, significantly increasing verbosity beyond normal print.to."
+  echo -e " +${c_important}v${c_reset}, ++${c_important}version${c_reset}    Print only the version number."
   echo
   echo -e "${c_highlight}Install Options:${c_reset}"
   echo -e " -${c_important}b${c_reset}, --${c_important}build${c_reset}       Custom build directory."
@@ -534,21 +473,15 @@ install_help() {
   echo -e " --${c_important}libraries-shared${c_reset}          Custom destination for shared libraries."
   echo -e " --${c_important}programs-static${c_reset}           Custom destination for static programs."
   echo -e " --${c_important}programs-shared${c_reset}           Custom destination for shared programs."
-
-  install_print_last
 }
 
 install_copyright() {
 
-  install_print_first
-
-  echo "Copyright © 2007-2023 Kevin Day."
+  echo "Copyright © 2007-2024 Kevin Day."
   echo
   echo "Source code license lgpl-2.1-or-later."
-  echo "Standard and specification license open-standard-license-1.0."
+  echo "Standard and specification license open-standard-license-1.0-or-later."
   echo "Documentation license cc-by-sa-4.0."
-
-  install_print_last
 }
 
 install_perform_install() {
@@ -588,8 +521,6 @@ install_perform_install() {
 
     if [[ ${?} -ne 0 ]] ; then
       if [[ ${verbosity} != "quiet" ]] ; then
-        install_print_first
-
         echo -e "${c_error}ERROR: Failed to create install ${message} ${c_notice}${destination_prefix}${c_error}.${c_reset}"
       fi
 
@@ -603,8 +534,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to create install ${message} ${c_notice}${destination_programs}${c_error}.${c_reset}"
         fi
 
@@ -617,8 +546,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to create install ${message} ${c_notice}${destination_programs_shared}${c_error}.${c_reset}"
         fi
 
@@ -631,8 +558,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to create install ${message} ${c_notice}${destination_programs_static}${c_error}.${c_reset}"
         fi
 
@@ -647,8 +572,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to create install ${message} ${c_notice}${destination_libraries}${c_error}.${c_reset}"
         fi
 
@@ -661,8 +584,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to create ${message} ${c_notice}${destination_libraries_shared}${c_error}.${c_reset}"
         fi
 
@@ -675,8 +596,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to create ${message} ${c_notice}${destination_libraries_static}${c_error}.${c_reset}"
         fi
 
@@ -691,8 +610,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to create ${message} ${c_notice}${destination_includes}${c_error}.${c_reset}"
         fi
 
@@ -707,8 +624,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to create ${message} ${c_notice}${destination_documentation}${c_error}.${c_reset}"
         fi
 
@@ -723,8 +638,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to create ${message} ${c_notice}${destination_settings}${c_error}.${c_reset}"
         fi
 
@@ -733,7 +646,7 @@ install_perform_install() {
     fi
   fi
 
-  if [[ ${failure} == "" && -d ${path_build}${path_includes} && ${enable_includes} == "yes" ]] ; then
+  if [[ ${failure} -eq 0 && -d ${path_build}${path_includes} && ${enable_includes} == "yes" ]] ; then
     for i in ${path_build}${path_includes}* ; do
 
       file=$(echo ${i} | sed -e "s|^${path_build}${path_includes}||")
@@ -747,8 +660,7 @@ install_perform_install() {
 
     if [[ ${file} != "" ]] ; then
       if [[ ${verbosity} != "quiet" && ${verbosity} != "error" ]] ; then
-        install_print_first_or_always
-
+        echo
         echo -e "${c_highlight}Installing Includes to: ${c_reset}${c_notice}${destination_includes}${c_reset}${c_highlight}.${c_reset}"
       fi
 
@@ -756,8 +668,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: Failed to copy include files from ${c_notice}${path_build}${path_includes}${c_error} to ${c_notice}${destination_includes}${c_error}.${c_reset}"
         fi
 
@@ -766,7 +676,7 @@ install_perform_install() {
     fi
   fi
 
-  if [[ ${failure} == "" && -d ${path_build}${path_libraries} && ( ${enable_shared_libraries} == "yes" || ${enable_static_libraries} == "yes" ) ]] ; then
+  if [[ ${failure} -eq 0 && -d ${path_build}${path_libraries} && ( ${enable_shared_libraries} == "yes" || ${enable_static_libraries} == "yes" ) ]] ; then
     if [[ -d ${path_build}${path_libraries}${path_static} && ${enable_static_libraries} == "yes" ]] ; then
       for i in ${path_build}${path_libraries}${path_static}* ; do
 
@@ -781,8 +691,7 @@ install_perform_install() {
 
       if [[ ${file} != "" ]] ; then
         if [[ ${verbosity} != "quiet" && ${verbosity} != "error" ]] ; then
-          install_print_first_or_always
-
+          echo
           echo -e "${c_highlight}Installing (${c_notice}static${c_highlight}) Libraries to: ${c_reset}${c_notice}${destination_libraries_static}${c_reset}${c_highlight}.${c_reset}"
         fi
 
@@ -790,8 +699,6 @@ install_perform_install() {
 
         if [[ ${?} -ne 0 ]] ; then
           if [[ ${verbosity} != "quiet" ]] ; then
-            install_print_first
-
             echo -e "${c_error}ERROR: Failed to copy (${c_notice}static${c_error}) library files from ${c_notice}${path_build}${path_libraries}${path_static}${c_error} to ${c_notice}${destination_libraries_static}${c_error}.${c_reset}"
           fi
 
@@ -800,7 +707,7 @@ install_perform_install() {
       fi
     fi
 
-    if [[ ${failure} == "" && -d ${path_build}${path_libraries}${path_shared} && ${enable_shared_libraries} == "yes" ]] ; then
+    if [[ ${failure} -eq 0 && -d ${path_build}${path_libraries}${path_shared} && ${enable_shared_libraries} == "yes" ]] ; then
       for i in ${path_build}${path_libraries}${path_shared}* ; do
 
         file=$(echo ${i} | sed -e "s|^${path_build}${path_libraries}${path_shared}||")
@@ -814,8 +721,7 @@ install_perform_install() {
 
       if [[ ${file} != "" ]] ; then
         if [[ ${verbosity} != "quiet" && ${verbosity} != "error" ]] ; then
-          install_print_first_or_always
-
+          echo
           echo -e "${c_highlight}Installing (${c_notice}shared${c_highlight}) Libraries to: ${c_reset}${c_notice}${destination_libraries_shared}${c_reset}${c_highlight}.${c_reset}"
         fi
 
@@ -823,8 +729,6 @@ install_perform_install() {
 
         if [[ ${?} -ne 0 ]] ; then
           if [[ ${verbosity} != "quiet" ]] ; then
-            install_print_first
-
             echo -e "${c_error}ERROR: Failed to copy (${c_notice}shared${c_error}) library files from ${c_notice}${path_build}${path_libraries}${path_shared}${c_error} to ${c_notice}${destination_libraries_shared}${c_error}.${c_reset}"
           fi
 
@@ -834,7 +738,7 @@ install_perform_install() {
     fi
   fi
 
-  if [[ ${failure} == "" && -d ${path_build}${path_programs} && ( ${enable_shared_programs} == "yes" || ${enable_static_programs} == "yes" ) ]] ; then
+  if [[ ${failure} -eq 0 && -d ${path_build}${path_programs} && ( ${enable_shared_programs} == "yes" || ${enable_static_programs} == "yes" ) ]] ; then
     if [[ -d ${path_build}${path_programs}${path_static} && ${enable_static_programs} == "yes" ]] ; then
       for i in ${path_build}${path_programs}${path_static}* ; do
 
@@ -849,8 +753,7 @@ install_perform_install() {
 
       if [[ ${file} != "" && ${enable_static_programs} == "yes" ]] ; then
         if [[ ${verbosity} != "quiet" && ${verbosity} != "error" ]] ; then
-          install_print_first_or_always
-
+          echo
           echo -e "${c_highlight}Installing (${c_notice}static${c_highlight}) Programs to: ${c_reset}${c_notice}${destination_programs_static}${c_reset}${c_highlight}.${c_reset}"
         fi
 
@@ -858,8 +761,6 @@ install_perform_install() {
 
         if [[ ${?} -ne 0 ]] ; then
           if [[ ${verbosity} != "quiet" ]] ; then
-            install_print_first
-
             echo -e "${c_error}ERROR: failed to copy (${c_notice}static${c_error}) program files from ${c_notice}${path_build}${path_programs}${path_static}${c_error} to ${c_notice}${destination_programs_static}${c_error}.${c_reset}"
           fi
 
@@ -868,7 +769,7 @@ install_perform_install() {
       fi
     fi
 
-    if [[ ${failure} == "" && -d ${path_build}${path_programs}${path_shared} && ${enable_shared_programs} == "yes" ]] ; then
+    if [[ ${failure} -eq 0 && -d ${path_build}${path_programs}${path_shared} && ${enable_shared_programs} == "yes" ]] ; then
       for i in ${path_build}${path_programs}${path_shared}* ; do
 
         file=$(echo ${i} | sed -e "s|^${path_build}${path_programs}${path_shared}||")
@@ -882,8 +783,7 @@ install_perform_install() {
 
       if [[ ${file} != "" ]] ; then
         if [[ ${verbosity} != "quiet" && ${verbosity} != "error" ]] ; then
-          install_print_first_or_always
-
+          echo
           echo -e "${c_highlight}Installing (${c_notice}shared${c_highlight}) Programs to: ${c_reset}${c_notice}${destination_programs_shared}${c_reset}${c_highlight}.${c_reset}"
         fi
 
@@ -891,8 +791,6 @@ install_perform_install() {
 
         if [[ ${?} -ne 0 ]] ; then
           if [[ ${verbosity} != "quiet" ]] ; then
-            install_print_first
-
             echo -e "${c_error}ERROR: failed to copy (${c_notice}shared${c_error}) program files from ${c_notice}${path_build}${path_programs}${path_shared}${c_error} to ${c_notice}${destination_programs_shared}${c_error}.${c_reset}"
           fi
 
@@ -902,7 +800,7 @@ install_perform_install() {
     fi
   fi
 
-  if [[ ${failure} == "" && -d ${path_build}${path_settings} && ${enable_settings} == "yes" ]] ; then
+  if [[ ${failure} -eq 0 && -d ${path_build}${path_settings} && ${enable_settings} == "yes" ]] ; then
     for i in ${path_build}${path_settings}* ; do
 
       file=$(echo ${i} | sed -e "s|^${path_build}${path_settings}||")
@@ -916,8 +814,7 @@ install_perform_install() {
 
     if [[ ${file} != "" ]] ; then
       if [[ ${verbosity} != "quiet" && ${verbosity} != "error" ]] ; then
-        install_print_first_or_always
-
+        echo
         echo -e "${c_highlight}Installing Settings to: ${c_reset}${c_notice}${destination_settings}${c_reset}${c_highlight}.${c_reset}"
       fi
 
@@ -925,8 +822,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: failed to copy settings files from ${c_notice}${path_build}${path_settings}${c_error} to ${c_notice}${destination_settings}${c_error}.${c_reset}"
         fi
 
@@ -935,7 +830,7 @@ install_perform_install() {
     fi
   fi
 
-  if [[ ${failure} == "" && -d ${path_build}${path_documentation} && ${enable_documentation} == "yes" ]] ; then
+  if [[ ${failure} -eq 0 && -d ${path_build}${path_documentation} && ${enable_documentation} == "yes" ]] ; then
     for i in ${path_build}${path_documentation}* ; do
 
       file=$(echo ${i} | sed -e "s|^${path_build}${path_documentation}||")
@@ -949,8 +844,7 @@ install_perform_install() {
 
     if [[ ${file} != "" ]] ; then
       if [[ ${verbosity} != "quiet" && ${verbosity} != "error" ]] ; then
-        install_print_first_or_always
-
+        echo
         echo -e "${c_highlight}Installing Documentation to: ${c_reset}${c_notice}${destination_documentation}${c_reset}${c_highlight}.${c_reset}"
       fi
 
@@ -958,8 +852,6 @@ install_perform_install() {
 
       if [[ ${?} -ne 0 ]] ; then
         if [[ ${verbosity} != "quiet" ]] ; then
-          install_print_first
-
           echo -e "${c_error}ERROR: failed to copy documentation files from ${c_notice}${path_build}${path_documentation}${c_error} to ${c_notice}${destination_documentation}${c_error}.${c_reset}"
         fi
 
@@ -968,40 +860,11 @@ install_perform_install() {
     fi
   fi
 
-  if [[ ${failure} == "" ]] ; then
-    return 0
-  fi
-
-  return 1
-}
-
-install_print_first() {
-
-  if [[ ${print_line_first} == "yes" ]] ; then
-    echo
-
-    print_line_first=
-  fi
-}
-
-install_print_first_or_always() {
-
-  if [[ ${print_line_first} == "yes" ]] ; then
-    echo
-
-    print_line_first=
-  elif [[ ${print_line_first} == "no" ]] ; then
-    print_line_first=
-  else
-    echo
+  if [[ ${failure} -eq 1 ]] ; then
+    return 1
   fi
-}
 
-install_print_last() {
-
-  if [[ ${print_line_last} == "yes" ]] ; then
-    echo
-  fi
+  return 0
 }
 
 install_cleanup() {
@@ -1011,9 +874,6 @@ install_cleanup() {
   unset install_handle_colors
   unset install_help
   unset install_perform_install
-  unset install_print_first
-  unset install_print_first_or_always
-  unset install_print_last
   unset install_cleanup
 }
 
index 426c419642ecd73a5906c1bf68b88fc2d2a0d3d9..bb2f666935d4096fefb862c7efbae9081bcf878a 100644 (file)
@@ -57,22 +57,6 @@ extern "C" {
 
     main->setting.state.step_small = kt_remove_allocation_small_d;
 
-
-    // Identify and pocess first/last parameters.
-    if (main->program.parameters.array[kt_remove_parameter_line_first_no_e].result & f_console_result_found_e) {
-      main->setting.flag -= main->setting.flag & kt_remove_main_flag_print_first_e;
-    }
-    else {
-      main->setting.flag |= kt_remove_main_flag_print_first_e;
-    }
-
-    if (main->program.parameters.array[kt_remove_parameter_line_last_no_e].result & f_console_result_found_e) {
-      main->setting.flag -= main->setting.flag & kt_remove_main_flag_print_last_e;
-    }
-    else {
-      main->setting.flag |= kt_remove_main_flag_print_last_e;
-    }
-
     if (F_status_is_error(main->setting.state.status)) {
       if ((main->setting.flag & kt_remove_main_flag_print_first_e) && main->program.message.verbosity > f_console_verbosity_error_e) {
         fll_print_dynamic_raw(f_string_eol_s, main->program.message.to);
index 43cd93f2e2678d0b1d4fc87b4923c4b8728cf9b1..e4093a6906d53e4fd40e8e412f0360b2f4237dfa 100644 (file)
@@ -233,8 +233,6 @@ extern "C" {
     kt_remove_parameter_verbosity_verbose_e,
     kt_remove_parameter_verbosity_debug_e,
     kt_remove_parameter_version_e,
-    kt_remove_parameter_line_first_no_e,
-    kt_remove_parameter_line_last_no_e,
 
     kt_remove_parameter_accessed_e,
     kt_remove_parameter_block_e,
index 07615889b37cbad1799adb249cef64489bca9931..e288b21183e312b257c3fc143a382e66cc8c8b74 100644 (file)
@@ -82,7 +82,7 @@ extern "C" {
  *
  *   This does not alter print.custom.setting.state.status.
  * @param symbol
- *   The symbol string prepended to both parameters.
+ *   The symbol string prepended to the parameter.
  *   This locks, uses, and unlocks the file stream.
  *   This is usually f_console_symbol_long_normal_s.
  * @param parameter
@@ -181,7 +181,7 @@ extern "C" {
  *
  *   This does not alter print.custom.setting.state.status.
  * @param symbol
- *   The symbol string prepended to both parameters.
+ *   The symbol string prepended to the parameter.
  *   This locks, uses, and unlocks the file stream.
  *   This is usually f_console_symbol_long_normal_s.
  * @param parameter
index d978c829e594ffed3508bc455b66ce84f3085190..dc8f04b90c1af8d1632ba979912f23646f5996b1 100644 (file)
@@ -15,22 +15,6 @@ extern "C" {
 
     main->setting.state.step_small = kt_tacocat_allocation_small_d;
 
-
-    // Identify and pocess first/last parameters.
-    if (main->program.parameters.array[kt_tacocat_parameter_line_first_no_e].result & f_console_result_found_e) {
-      main->setting.flag &= ~kt_tacocat_main_flag_print_first_e;
-    }
-    else {
-      main->setting.flag |= kt_tacocat_main_flag_print_first_e;
-    }
-
-    if (main->program.parameters.array[kt_tacocat_parameter_line_last_no_e].result & f_console_result_found_e) {
-      main->setting.flag &= ~kt_tacocat_main_flag_print_last_e;
-    }
-    else {
-      main->setting.flag |= kt_tacocat_main_flag_print_last_e;
-    }
-
     if (F_status_is_error(main->setting.state.status)) {
       macro_setting_load_print_first();
       kt_tacocat_print_error(&main->program.error, macro_kt_tacocat_f(f_console_parameter_process));
index aa211aa27c3204081f756d0c2c1de5cd575f0d35..e77e2a7c0e3bb8c44608e5fe497b66d3185c1912 100644 (file)
@@ -78,8 +78,6 @@ extern "C" {
     kt_tacocat_parameter_verbosity_verbose_e,
     kt_tacocat_parameter_verbosity_debug_e,
     kt_tacocat_parameter_version_e,
-    kt_tacocat_parameter_line_first_no_e,
-    kt_tacocat_parameter_line_last_no_e,
 
     kt_tacocat_parameter_interval_e,
     kt_tacocat_parameter_max_buffer_e,
index 09841ee36ee2512bee9c24d7801d621a5d4b8848..f5432f4f4039b5ebca8b190731987fc342c14051 100644 (file)
@@ -107,7 +107,7 @@ extern "C" {
  *
  *   This does not alter print.custom.setting.state.status.
  * @param symbol
- *   The symbol string prepended to both parameters.
+ *   The symbol string prepended to the parameter.
  *   This locks, uses, and unlocks the file stream.
  *   This is usually f_console_symbol_long_normal_s.
  * @param name