context="+n"
elif [[ $p == "+q" || $p == "++quiet" ]] ; then
verbosity="quiet"
- verbose=
+ verbose="+q"
verbose_common=
elif [[ $p == "+N" || $p == "++normal" ]] ; then
verbosity=
- verbose=
+ verbose="+N"
verbose_common=
elif [[ $p == "+V" || $p == "++verbose" ]] ; then
verbosity="verbose"
local alt=$1
local i=
- mkdir $verbose -p ${path_build}{documents,includes,libraries/{script,shared,static},objects/{script,shared,static},programs/{script,shared,static},settings,stage} || failure=1
+ mkdir $verbose_common -p ${path_build}{documents,includes,libraries/{script,shared,static},objects/{script,shared,static},programs/{script,shared,static},settings,stage} || failure=1
if [[ $failure -eq 1 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ ${variables[$(bootstrap_id path_headers-mode)]} != "" ]] ; then
- mkdir $verbose -p ${path_build}includes/${variables[$(bootstrap_id path_headers-mode)]} || failure=1
+ mkdir $verbose_common -p ${path_build}includes/${variables[$(bootstrap_id path_headers-mode)]} || failure=1
elif [[ ${variables[$(bootstrap_id path_headers)]} != "" ]] ; then
- mkdir $verbose -p ${path_build}includes/${variables[$(bootstrap_id path_headers)]} || failure=1
+ mkdir $verbose_common -p ${path_build}includes/${variables[$(bootstrap_id path_headers)]} || failure=1
fi
if [[ $failure -eq 1 ]] ; then
directory=$(dirname $i)
if [[ $directory == "." ]] ; then
- cp $verbose -R $path_settings$i ${path_build}settings/ || failure=1
+ cp $verbose_common -R $path_settings$i ${path_build}settings/ || failure=1
else
- mkdir $verbose -p ${path_build}settings/$directory || failure=1
+ mkdir $verbose_common -p ${path_build}settings/$directory || failure=1
if [[ $failure -eq 0 ]] ; then
- cp $verbose -R $path_settings$i ${path_build}settings/${directory}/ || failure=1
+ cp $verbose_common -R $path_settings$i ${path_build}settings/${directory}/ || failure=1
fi
fi
done
directory=$(dirname $i)
if [[ $directory == "." ]] ; then
- cp $verbose -f $path_sources$path_language$i ${path_build}includes/$path_headers || failure=1
+ cp $verbose_common -f $path_sources$path_language$i ${path_build}includes/$path_headers || failure=1
else
if [[ ! -d ${path_build}includes/$path_headers$directory ]] ; then
- mkdir $verbose -p ${path_build}includes/$path_headers$directory || failure=1
+ mkdir $verbose_common -p ${path_build}includes/$path_headers$directory || failure=1
fi
if [[ $failure -eq 0 ]] ; then
- cp $verbose -f $path_sources$path_language$i ${path_build}includes/$path_headers$i || failure=1
+ cp $verbose_common -f $path_sources$path_language$i ${path_build}includes/$path_headers$i || failure=1
fi
fi
done
else
for i in $sources_headers ; do
- cp $verbose -f $path_sources$path_language$i ${path_build}includes/$path_headers || failure=1
+ cp $verbose_common -f $path_sources$path_language$i ${path_build}includes/$path_headers || failure=1
done
fi
fi
if [[ $failure -eq 0 ]] ; then
if [[ $version_file_value != "major" ]] ; then
if [[ $version_file_value == "minor" ]] ; then
- ln $verbose -sf lib$build_name.so$version_file ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major || failure=1
+ ln $verbose_common -sf lib$build_name.so$version_file ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major || failure=1
else
- ln $verbose -sf lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major || failure=1
+ ln $verbose_common -sf lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major || failure=1
if [[ $failure -eq 0 ]] ; then
if [[ $version_file_value == "micro" ]] ; then
- ln $verbose -sf lib$build_name.so$version_file ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor || failure=1
+ ln $verbose_common -sf lib$build_name.so$version_file ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor || failure=1
else
- ln $verbose -sf lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor$version_micro_prefix$version_micro ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor || failure=1
+ ln $verbose_common -sf lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor$version_micro_prefix$version_micro ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor || failure=1
if [[ $failure -eq 0 ]] ; then
- ln $verbose -sf lib$build_name.so$version_file ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor_prefix$version_minor$version_micro_prefix$version_micro || failure=1
+ ln $verbose_common -sf lib$build_name.so$version_file ${path_build}libraries/${path_library_shared}lib$build_name.so$version_major_prefix$version_major$version_minor_prefix$version_minor_prefix$version_minor$version_micro_prefix$version_micro || failure=1
fi
fi
fi
fi
if [[ $failure -eq 0 ]] ; then
- ln $verbose -sf lib$build_name.so$version_major_prefix$version_major ${path_build}libraries/${path_library_shared}lib$build_name.so || failure=1
+ ln $verbose_common -sf lib$build_name.so$version_major_prefix$version_major ${path_build}libraries/${path_library_shared}lib$build_name.so || failure=1
fi
fi
fi
n=$(basename $i | sed -e 's|\.c$||')
if [[ $directory != "." && ! -d ${path_build}objects/$directory ]] ; then
- mkdir $verbose -p ${path_build}objects/$directory
+ mkdir $verbose_common -p ${path_build}objects/$directory
if [[ $? -ne 0 ]] ; then
let failure=1
for i in ${path_build}{documents,includes,libraries,objects,programs,settings,stage} ; do
if [[ -e $i ]] ; then
- rm $verbose -Rf $i
+ rm $verbose_common -Rf $i
fi
done
if [[ -f ${project_built}.prepared ]] ; then
- rm $verbose -f ${project_built}.prepared
+ rm $verbose_common -f ${project_built}.prepared
fi
if [[ -f ${project_built_shared}.built ]] ; then
- rm $verbose -f ${project_built_shared}.built
+ rm $verbose_common -f ${project_built_shared}.built
fi
if [[ -f ${project_built_static}.built ]] ; then
- rm $verbose -f ${project_built_static}.built
+ rm $verbose_common -f ${project_built_static}.built
fi
}
context="+n"
elif [[ $p == "+q" || $p == "++quiet" ]] ; then
verbosity="quiet"
- verbose=
+ verbose="+q"
verbose_common=
elif [[ $p == "+N" || $p == "++normal" ]] ; then
verbosity=
- verbose=
+ verbose="+N"
verbose_common=
elif [[ $p == "+V" || $p == "++verbose" ]] ; then
verbosity="verbose"
if [[ $work == "" && ! -d $destination_programs_static ]] ; then
if [[ $verbosity != "quiet" ]] ; then
- echo -e "${c_error}ERROR: The destination (static) bindir $c_notice$destination_programs_static$c_error is not a valid directory.$c_reset"
+ 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"
fi
install_cleanup
if [[ $work == "" && ! -d $destination_programs_shared ]] ; then
if [[ $verbosity != "quiet" ]] ; then
- echo -e "${c_error}ERROR: The destination (shared) bindir $c_notice$destination_programs_shared$c_error is not a valid directory.$c_reset"
+ 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"
fi
install_cleanup
if [[ $work == "" && ! -d $destination_libraries_static ]] ; then
if [[ $verbosity != "quiet" ]] ; then
- echo -e "${c_error}ERROR: The destination (static) libdir $c_notice$destination_libraries_static$c_error is not a valid directory.$c_reset"
+ 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"
fi
install_cleanup
if [[ $work == "" && ! -d $destination_libraries_shared ]] ; then
if [[ $verbosity != "quiet" ]] ; then
- echo -e "${c_error}ERROR: The destination (shared) libdir $c_notice$destination_libraries_shared$c_error is not a valid directory.$c_reset"
+ 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"
fi
install_cleanup
}
install_handle_colors() {
+
if [[ $do_color == "light" ]] ; then
c_error="\\033[1;31m"
c_warning="\\033[0;31m"
}
install_help() {
+
echo
echo -e "${c_title}$public_name$c_reset"
echo -e " ${c_notice}Version $version$c_reset"
if [[ $enable_static_libraries == "yes" ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo
- echo -e "${c_highlight}Installing (static) Libraries to: $c_reset$c_notice$destination_libraries_static$c_reset${c_highlight}.$c_reset"
+ 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
cp $verbose_common -R $path_build$path_libraries${path_static}* $destination_libraries_static
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
- echo -e "${c_error}ERROR: Failed to copy (static) library files from $c_notice$path_build$path_libraries$path_static$c_error to $c_notice$destination_libraries_static$c_error.$c_reset"
+ 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
failure=1
if [[ $failure == "" && $build_sources_library != "" && $enable_shared_libraries == "yes" ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo
- echo -e "${c_highlight}Installing (shared) Libraries to: $c_reset$c_notice$destination_libraries_shared$c_reset${c_highlight}.$c_reset"
+ 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
cp $verbose_common -R $path_build$path_libraries${path_shared}* $destination_libraries_shared
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
- echo -e "${c_error}ERROR: Failed to copy (shared) library files from $c_notice$path_build$path_libraries$path_shared$c_error to $c_notice$destination_libraries_shared$c_error.$c_reset"
+ 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
failure=1
if [[ $enable_static_programs == "yes" ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo
- echo -e "${c_highlight}Installing (static) Programs to: $c_reset$c_notice$destination_programs_static$c_reset${c_highlight}.$c_reset"
+ 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
cp $verbose_common -R $path_build$path_programs${path_static}* $destination_programs_static
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
- echo -e "${c_error}ERROR: failed to copy (static) program files from $c_notice$path_build$path_programs$path_static$c_error to $c_notice$destination_programs_static$c_error.$c_reset"
+ 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
failure=1
if [[ $failure == "" && $build_sources_program != "" && $enable_shared_programs == "yes" ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo
- echo -e "${c_highlight}Installing (shared) Programs to: $c_reset$c_notice$destination_programs_shared$c_reset${c_highlight}.$c_reset"
+ 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
cp $verbose_common -R $path_build$path_programs${path_shared}* $destination_programs_shared
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
- echo -e "${c_error}ERROR: failed to copy (shared) program files from $c_notice$path_build$path_programs$path_shared$c_error to $c_notice$destination_programs_shared$c_error.$c_reset"
+ 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
failure=1
}
install_cleanup() {
+
unset install_main
unset install_handle_colors
unset install_help
context="+n"
elif [[ $p == "+q" || $p == "++quiet" ]] ; then
verbosity="quiet"
- verbose=
+ verbose="+q"
verbose_common=
elif [[ $p == "+N" || $p == "++normal" ]] ; then
verbosity=
- verbose=
+ verbose="+N"
verbose_common=
elif [[ $p == "+V" || $p == "++verbose" ]] ; then
verbosity="verbose"
fi
if [[ ! -d $path_destination ]] ; then
- mkdir $verbose -p $path_destination
+ mkdir $verbose_common -p $path_destination
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
echo -e "${c_error}ERROR: Package directory '$path_destination' is invalid or could not be created.$c_reset"
}
package_handle_colors() {
+
if [[ $do_color == "light" ]] ; then
c_error="\\033[1;31m"
c_warning="\\033[0;31m"
}
package_help() {
+
echo
echo -e "${c_title}$public_name$c_reset"
echo -e " ${c_notice}Version $version$c_reset"
package_create_base_files() {
if [[ ! -d $package ]] ; then
- mkdir $verbose -p $package
+ mkdir $verbose_common -p $package
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $failure == "" ]] ; then
- cp $verbose -R ${path_build}documents $package
+ cp $verbose_common -R ${path_build}documents $package
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
if [[ $failure == "" ]] ; then
if [[ -d ${path_build}licenses ]] ; then
- cp $verbose -R ${path_build}licenses $package
+ cp $verbose_common -R ${path_build}licenses $package
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
let failure=1
fi
elif [[ -d ${path_build}../licenses ]] ; then
- cp $verbose -R ${path_build}../licenses $package
+ cp $verbose_common -R ${path_build}../licenses $package
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $failure == "" ]] ; then
- cp $verbose -R ${path_build}scripts/bootstrap.sh $package
+ cp $verbose_common -R ${path_build}scripts/bootstrap.sh $package
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $failure == "" ]] ; then
- cp $verbose -R ${path_build}scripts/install.sh $package
+ cp $verbose_common -R ${path_build}scripts/install.sh $package
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $failure != "" && ! -d ${package}build ]] ; then
- mkdir $verbose -p ${package}build
+ mkdir $verbose_common -p ${package}build
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $failure != "" && ! -d ${package}sources ]] ; then
- mkdir $verbose -p ${package}sources
+ mkdir $verbose_common -p ${package}sources
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $failure != "" && ! -d ${package}documents ]] ; then
- mkdir $verbose -p ${package}documents
+ mkdir $verbose_common -p ${package}documents
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ $failure != "" && ! -d ${package}licenses ]] ; then
- mkdir $verbose -p ${package}licenses
+ mkdir $verbose_common -p ${package}licenses
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
if [[ $mode_individual == "yes" ]] ; then
if [[ -d ${path_destination}individual ]] ; then
- rm $verbose -Rf ${path_destination}individual
+ rm $verbose_common -Rf ${path_destination}individual
fi
fi
if [[ $mode_level == "yes" ]] ; then
if [[ -d ${path_destination}level ]] ; then
- rm $verbose -Rf ${path_destination}level
+ rm $verbose_common -Rf ${path_destination}level
fi
fi
if [[ $mode_monolithic == "yes" ]] ; then
if [[ -d ${path_destination}monolithic ]] ; then
- rm $verbose -Rf ${path_destination}monolithic
+ rm $verbose_common -Rf ${path_destination}monolithic
fi
fi
if [[ $mode_program == "yes" ]] ; then
if [[ -d ${path_destination}program ]] ; then
- rm $verbose -Rf ${path_destination}program
+ rm $verbose_common -Rf ${path_destination}program
fi
fi
}
package_operation_copy_package() {
+
if [[ -d ${package}sources/data/ ]] ; then
- cp $verbose -R ${package}sources/data ${package}
+ cp $verbose_common -R ${package}sources/data ${package}
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
return $failure
fi
- rm $verbose -Rf ${package}sources/data
+ rm $verbose_common -Rf ${package}sources/data
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ -d ${package}sources/documents/ ]] ; then
- cp $verbose -R ${package}sources/documents/ ${package}
+ cp $verbose_common -R ${package}sources/documents/ ${package}
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
return $failure
fi
- rm $verbose -Rf ${package}sources/documents/
+ rm $verbose_common -Rf ${package}sources/documents/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ -d ${package}sources/licenses/ ]] ; then
- cp $verbose -R ${package}sources/licenses/ ${package}
+ cp $verbose_common -R ${package}sources/licenses/ ${package}
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
return $failure
fi
- rm $verbose -Rf ${package}sources/licenses/
+ rm $verbose_common -Rf ${package}sources/licenses/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ -d ${package}sources/specifications/ ]] ; then
- cp $verbose -R ${package}sources/specifications/ ${package}
+ cp $verbose_common -R ${package}sources/specifications/ ${package}
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
return $failure
fi
- rm $verbose -Rf ${package}sources/specifications/
+ rm $verbose_common -Rf ${package}sources/specifications/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ -d ${package}sources/tests/ ]] ; then
- cp $verbose -R ${package}sources/tests/ ${package}
+ cp $verbose_common -R ${package}sources/tests/ ${package}
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
return $failure
fi
- rm $verbose -Rf ${package}sources/tests/
+ rm $verbose_common -Rf ${package}sources/tests/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
}
package_operation_create_config_stubs() {
+
if [[ ! -f ${package}data/build/settings ]] ; then
return 0
fi
local package=
if [[ ! -d ${path_destination}individual ]] ; then
- mkdir $verbose -p ${path_destination}individual
+ mkdir $verbose_common -p ${path_destination}individual
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
package_create_base_files
- cp $verbose -R $directory ${package}sources/
+ cp $verbose_common -R $directory ${package}sources/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
package_create_base_files
if [[ ! -d ${package}data/ ]] ; then
- mkdir $verbose ${package}data/
+ mkdir $verbose_common ${package}data/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ -d $path_build${level}/build ]] ; then
- cp $verbose -R $path_build${level}/build ${package}data/
+ cp $verbose_common -R $path_build${level}/build ${package}data/
else
- cp $verbose -R $path_build$level ${package}data/build
+ cp $verbose_common -R $path_build$level ${package}data/build
fi
if [[ $? -ne 0 ]] ; then
fi
if [[ ! -d ${package}sources/ ]] ; then
- mkdir $verbose ${package}sources/
+ mkdir $verbose_common ${package}sources/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
for directory in $path_sources${level}/* ; do
- cp $verbose -R $directory/* ${package}sources/
+ cp $verbose_common -R $directory/* ${package}sources/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
break
fi
- rm $verbose -Rf ${package}sources/data/build/
+ rm $verbose_common -Rf ${package}sources/data/build/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
package_create_base_files
if [[ ! -d ${package}data/ ]] ; then
- mkdir $verbose ${package}data/
+ mkdir $verbose_common ${package}data/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ -d ${path_build}monolithic/build ]] ; then
- cp $verbose -R ${path_build}monolithic/build ${package}data
+ cp $verbose_common -R ${path_build}monolithic/build ${package}data
else
- cp $verbose -R ${path_build}monolithic ${package}data/build
+ cp $verbose_common -R ${path_build}monolithic ${package}data/build
fi
if [[ $? -ne 0 ]] ; then
fi
if [[ ! -d ${package}sources/ ]] ; then
- mkdir $verbose ${package}sources/
+ mkdir $verbose_common ${package}sources/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ ! -d ${package}tests/ ]] ; then
- mkdir $verbose ${package}tests/
+ mkdir $verbose_common ${package}tests/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
if [[ $pathname == "data" ]] ; then
if [[ ! -d ${package}data/$level ]] ; then
- mkdir $verbose -p ${package}data/$level
+ mkdir $verbose_common -p ${package}data/$level
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
fi
- cp $verbose -R $subdirectory ${package}sources/data
+ cp $verbose_common -R $subdirectory ${package}sources/data
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
break
fi
- rm $verbose -Rf ${package}sources/data/build/
+ rm $verbose_common -Rf ${package}sources/data/build/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
if [[ "$(ls ${package}sources/data)" != "" ]] ; then
- cp $verbose -R ${package}sources/data/* ${package}data/$level
+ cp $verbose_common -R ${package}sources/data/* ${package}data/$level
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
fi
- rm $verbose -Rf ${package}sources/data
+ rm $verbose_common -Rf ${package}sources/data
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
break
fi
elif [[ $pathname == "documents" ]] ; then
- cp $verbose -R $subdirectory ${package}sources/
+ cp $verbose_common -R $subdirectory ${package}sources/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
break
fi
elif [[ $pathname == "licenses" ]] ; then
- cp $verbose -R $subdirectory ${package}sources/
+ cp $verbose_common -R $subdirectory ${package}sources/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
break
fi
elif [[ $pathname == "specifications" ]] ; then
- cp $verbose -R $subdirectory ${package}sources/
+ cp $verbose_common -R $subdirectory ${package}sources/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
break
fi
elif [[ $pathname == "tests" ]] ; then
- cp $verbose -R $subdirectory ${package}
+ cp $verbose_common -R $subdirectory ${package}
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
else
if [[ ! -d ${package}sources/$pathname/$level ]] ; then
- mkdir $verbose -p ${package}sources/$pathname/$level
+ mkdir $verbose_common -p ${package}sources/$pathname/$level
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
fi
fi
- cp $verbose -R $subdirectory/* ${package}sources/$pathname/$level
+ cp $verbose_common -R $subdirectory/* ${package}sources/$pathname/$level
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
local package=
if [[ ! -d ${path_destination}program ]] ; then
- mkdir $verbose -p ${path_destination}program
+ mkdir $verbose_common -p ${path_destination}program
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
package_create_base_files
- cp $verbose -R $directory ${package}sources/
+ cp $verbose_common -R $directory ${package}sources/
if [[ $? -ne 0 ]] ; then
if [[ $verbosity != "quiet" ]] ; then
}
package_cleanup() {
+
unset package_main
unset package_handle_colors
unset package_help