OSDN Git Service

11e5b2904bd12ed042918f311662a27e06f97a75
[portsreinstall/current.git] / lib / upgrade / libmain.sh
1 #!/bin/sh -e
2 # ==============================================================================
3 # portsreinstall library script
4 # Overlay onto lib/libmain.sh for portsreinstall-upgrade
5 # - Common functions of main programs -
6 # Copyright (C) 2018-2022 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
7 # This software is distributed under the 2-Clause BSD License.
8 # ==============================================================================
9
10 # ============= Save the previous configuration if exists =============
11 main_save_prev_conf ()
12 {
13 }
14
15 # ============= Load the saved configuration =============
16 main_load_conf ()
17 {
18         . "${SAVEDCONF}"
19 }
20
21 # ============= Get complete configuration variable definitions by importing pkgtools.conf(5) if available =============
22 main_get_complete_conf ()
23 {
24 }
25
26 # ============= Parse the configuration =============
27 main_parse_conf ()
28 {
29 }