- Base library:
- Implement VSL (Version Stack Log),
- ISL:
- Add VSL support,
- URPMI-Setup
- Add VSL support.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
Welcome to Rx3 Base 1.1.x !
|
Welcome to Rx3 Base 1.2.x !
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,16 @@
|
|||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
Rx3-Base V 1.2.0 - A. GIBERT - 2026/09/09
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Base library:
|
||||||
|
- Implement VSL (Version Stack Log),
|
||||||
|
- ISL:
|
||||||
|
- Add VSL support,
|
||||||
|
- URPMI-Setup
|
||||||
|
- Add VSL support.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
Rx3-Base V 1.1.3 - A. GIBERT - 2026/08/01
|
Rx3-Base V 1.1.3 - A. GIBERT - 2026/08/01
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
%define name rx3-base
|
%define name rx3-base
|
||||||
|
|
||||||
%define version 1.1.3
|
%define version 1.2.0
|
||||||
%define release %mkrel 1rx3
|
%define release %mkrel 1rx3
|
||||||
|
|
||||||
|
|
||||||
@@ -178,6 +178,9 @@ cp sbin/* %{buildroot}%{_sbindir}
|
|||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 9 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.2.0-1rx3.mga9
|
||||||
|
- Update to 1.2.0
|
||||||
|
|
||||||
* Sat Aug 1 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.3-1rx3.mga9
|
* Sat Aug 1 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.3-1rx3.mga9
|
||||||
- Update to 1.1.3
|
- Update to 1.1.3
|
||||||
|
|
||||||
|
|||||||
@@ -46,18 +46,86 @@ shopt -s extglob
|
|||||||
# Global Variable
|
# Global Variable
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
declare -g NAME=""
|
declare -g RX3_LIB_VSL=()
|
||||||
declare -g VERSION=""
|
|
||||||
|
|
||||||
declare -g DUMP="FALSE"
|
declare RX3_LIB_NAME="Base"
|
||||||
declare -g DRY_RUN="FALSE"
|
declare RX3_LIB_VERSION="1.2.0"
|
||||||
declare -g HELP=""
|
|
||||||
declare -g VERBOSE="FALSE"
|
|
||||||
|
|
||||||
declare -g LOG_FILE=""
|
declare -g NAME=""
|
||||||
declare -g LOG_LOCK=""
|
declare -g VERSION=""
|
||||||
declare -g LOG_ECHO=""
|
|
||||||
declare -g LOG_TRACE="DISABLED"
|
declare -g DUMP="FALSE"
|
||||||
|
declare -g DRY_RUN="FALSE"
|
||||||
|
declare -g HELP=""
|
||||||
|
declare -g VERBOSE="FALSE"
|
||||||
|
|
||||||
|
declare -g LOG_FILE=""
|
||||||
|
declare -g LOG_LOCK=""
|
||||||
|
declare -g LOG_ECHO=""
|
||||||
|
declare -g LOG_TRACE="DISABLED"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
# VSL Add
|
||||||
|
#--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
vsl_add()
|
||||||
|
{
|
||||||
|
local name
|
||||||
|
local version
|
||||||
|
local file
|
||||||
|
|
||||||
|
|
||||||
|
if [[ "${BASH_SOURCE[1]}" == "$0" ]]
|
||||||
|
then
|
||||||
|
name="${NAME}"
|
||||||
|
version="${VERSION}"
|
||||||
|
file="${0}"
|
||||||
|
else
|
||||||
|
name="${RX3_LIB_NAME}"
|
||||||
|
version="${RX3_LIB_VERSION}"
|
||||||
|
file="${BASH_SOURCE[1]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RX3_LIB_VSL=("${name} ${version} ${file}" "${RX3_LIB_VSL[@]}")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
# VSL Cat
|
||||||
|
#--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
vsl_cat()
|
||||||
|
{
|
||||||
|
local reverse="$1"
|
||||||
|
|
||||||
|
|
||||||
|
if [[ "${reverse}" == "TRUE" ]]
|
||||||
|
then
|
||||||
|
printf '%s\n' "${RX3_LIB_VSL[@]}" | tac
|
||||||
|
else
|
||||||
|
printf '%s\n' "${RX3_LIB_VSL[@]}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
# VSL Top
|
||||||
|
#--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
vsl_top()
|
||||||
|
{
|
||||||
|
printf '%s\n' "${RX3_LIB_VSL[@]}" | head -1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -69,8 +137,29 @@ declare -g LOG_TRACE="DISABLED"
|
|||||||
|
|
||||||
version_print()
|
version_print()
|
||||||
{
|
{
|
||||||
# echo "${VERSION}" | sed -e 's/.*: //' -e 's/-/ /' -e 's/_/\./g' -e 's/\$$//'
|
local full="${1}"
|
||||||
echo "${NAME} V${VERSION}"
|
|
||||||
|
|
||||||
|
(
|
||||||
|
if [[ "${full}" == "TRUE" ]]
|
||||||
|
then
|
||||||
|
vsl_cat ""
|
||||||
|
else
|
||||||
|
vsl_top
|
||||||
|
fi
|
||||||
|
) | while read line
|
||||||
|
do
|
||||||
|
set ${line}
|
||||||
|
|
||||||
|
str="${1}\tV ${2}"
|
||||||
|
|
||||||
|
if [[ "${VERBOSE}" == "TRUE" ]]
|
||||||
|
then
|
||||||
|
str+="\t${3}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e ${str}
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -510,3 +599,13 @@ log_error()
|
|||||||
{
|
{
|
||||||
log_print "${LOG_FILE}" "${LOG_LOCK}" "${LOG_ECHO}" "ERR" "$@"
|
log_print "${LOG_FILE}" "${LOG_LOCK}" "${LOG_ECHO}" "ERR" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
# Main
|
||||||
|
#--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
vsl_add
|
||||||
|
|||||||
8
sbin/isl
8
sbin/isl
@@ -39,7 +39,7 @@
|
|||||||
# Global Variables
|
# Global Variables
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
declare -g VERSION="1.1.1"
|
declare -g VERSION="1.2.0"
|
||||||
declare -g NAME="ISL"
|
declare -g NAME="ISL"
|
||||||
declare -g HELP="usage: isl [-a | --add <URL>] | [-c | --cat [-r | --reverse]] | [-H | --html_dump [-i | --inline] [-r | --reverse]] | [-t | --top [-m | --image]] | [[-h | --help] | [-V | --version] [-T | --test] [-v | --verbose]"
|
declare -g HELP="usage: isl [-a | --add <URL>] | [-c | --cat [-r | --reverse]] | [-H | --html_dump [-i | --inline] [-r | --reverse]] | [-t | --top [-m | --image]] | [[-h | --help] | [-V | --version] [-T | --test] [-v | --verbose]"
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ function isl_args_parse()
|
|||||||
|
|
||||||
isl_version_print()
|
isl_version_print()
|
||||||
{
|
{
|
||||||
version_print
|
version_print "TRUE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -149,7 +149,7 @@ isl_version_print()
|
|||||||
|
|
||||||
isl_help_print()
|
isl_help_print()
|
||||||
{
|
{
|
||||||
version_print
|
version_print ""
|
||||||
help_print
|
help_print
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -335,6 +335,8 @@ isl_top()
|
|||||||
# Main
|
# Main
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
vsl_add
|
||||||
|
|
||||||
orig_args=("$@")
|
orig_args=("$@")
|
||||||
|
|
||||||
isl_args_parse "$@"
|
isl_args_parse "$@"
|
||||||
|
|||||||
@@ -39,8 +39,8 @@
|
|||||||
# Global Variables
|
# Global Variables
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
declare -g VERSION="1.0.2"
|
declare -g VERSION="1.2.0"
|
||||||
declare -g NAME="URPMI Setup"
|
declare -g NAME="URPMI-Setup"
|
||||||
declare -g HELP="usage: urpmi-setup [ [-d | --distrib <Distrib>] [-m | --mirror-mga <Mirror_List>] [-r | --mirror-rx3 <Mirror_List>] ] | [-h | --help] | [-V | --version] [ [ -D | --dump] | [-T | --test] ] [-u | --update] [-v | --verbose] ) ]"
|
declare -g HELP="usage: urpmi-setup [ [-d | --distrib <Distrib>] [-m | --mirror-mga <Mirror_List>] [-r | --mirror-rx3 <Mirror_List>] ] | [-h | --help] | [-V | --version] [ [ -D | --dump] | [-T | --test] ] [-u | --update] [-v | --verbose] ) ]"
|
||||||
|
|
||||||
declare -g DISTRIB_DEF="9"
|
declare -g DISTRIB_DEF="9"
|
||||||
@@ -140,7 +140,7 @@ function us_args_parse()
|
|||||||
|
|
||||||
us_version_print()
|
us_version_print()
|
||||||
{
|
{
|
||||||
version_print
|
version_print "TRUE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ us_version_print()
|
|||||||
|
|
||||||
us_help_print()
|
us_help_print()
|
||||||
{
|
{
|
||||||
version_print
|
version_print ""
|
||||||
help_print
|
help_print
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,6 +165,8 @@ us_help_print()
|
|||||||
# Main
|
# Main
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
vsl_add
|
||||||
|
|
||||||
orig_args=("$@")
|
orig_args=("$@")
|
||||||
|
|
||||||
us_args_parse "$@"
|
us_args_parse "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user