#!/bin/sh -e
# ==================================================================================
# portsreinstall main script
-# Copyright (C) 2010-2018 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
+# Copyright (C) 2010-2021 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
# This software is distributed under the 2-Clause BSD License.
# ==================================================================================
main_parse_options_arguments "$@"
shift "${OPTIONS_SHIFT}"
+shift "${COMMAND_SHIFT}"
# ========================================================
# ================== SET UP OF PARAMETERS ==================
main_collect_all_installed_packages
# Preliminary inspection of tools which have to be up-to-date
+main_determine_all_target_ports_of_tools
+main_preliminary_inspection_of_initial_tools
main_preliminary_inspection_of_tools
# Upgrade of pkg(8) if new
# ============= Database construction =============
-# Execute command operations which must be done before the database construction
-command_all_exec_before_build_database "$@"
-
# Execute command operations of database construction
command_all_exec_build_database "$@"