- Rx3 Profile:
- Add global & opt dir in global vars,
- Add XDG_DATA_DIRS, HISTSIZE, HISTFILESIZE & _JAVA_OPTIONS variables,
- ISL:
- Fix variable quoting bug,
- URPMI-Setup:
- Fix a bug in media naming loop.
This commit is contained in:
@@ -1,3 +1,22 @@
|
|||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
Rx3-Base V 1.1.1 - A. GIBERT - 2026/04/10
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Rx3 Profile:
|
||||||
|
- Add global & opt dir in global vars,
|
||||||
|
- Add XDG_DATA_DIRS, HISTSIZE, HISTFILESIZE & _JAVA_OPTIONS variables,
|
||||||
|
- Base library:
|
||||||
|
- Add "-o errexit -o pipefail -o nounset -O extglob" for bash call in sh_exec(),
|
||||||
|
- Prefix program name in cmd_exec() & sh_exec() verbose log,
|
||||||
|
- ISL:
|
||||||
|
- Add RX3_LIB_DIR env variable support,
|
||||||
|
- Fix variable quoting bug,
|
||||||
|
- URPMI-Setup:
|
||||||
|
- Add RX3_LIB_DIR env variable support,
|
||||||
|
- Fix a bug in media naming loop.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
Rx3-Base V 1.1.0 - A. GIBERT - 2026/04/09
|
Rx3-Base V 1.1.0 - A. GIBERT - 2026/04/09
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
%define name rx3-base
|
%define name rx3-base
|
||||||
|
|
||||||
%define version 1.1.0
|
%define version 1.1.1
|
||||||
%define release %mkrel 1rx3
|
%define release %mkrel 1rx3
|
||||||
|
|
||||||
|
|
||||||
@@ -131,7 +131,10 @@ cp sbin/* %{buildroot}%{_sbindir}
|
|||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Apr 7 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.0-1rx3.mga9
|
* Fri Apr 10 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.1-1rx3.mga9
|
||||||
|
- Update to 1.1.1
|
||||||
|
|
||||||
|
* Thu Apr 9 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.1.0-1rx3.mga9
|
||||||
- Update to 1.1.0
|
- Update to 1.1.0
|
||||||
|
|
||||||
* Tue Mar 17 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.0.0-1rx3.mga9
|
* Tue Mar 17 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.0.0-1rx3.mga9
|
||||||
|
|||||||
@@ -27,9 +27,18 @@
|
|||||||
# Global Variable
|
# Global Variable
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
export PAGER=less
|
export MANPATH=$MANPATH:/usr/local/share/man:/usr/global/share/man:/opt/share/man
|
||||||
export MANPAGER="less -isr"
|
export CLASSPATH=$CLASSPATH:/usr/local/lib/java:/usr/global/lib/java:/usr/global/lib/java
|
||||||
export EDITOR=emacs
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share:/usr/local/share:/usr/global/share:/opt/share
|
||||||
|
|
||||||
|
export HISTSIZE=10000
|
||||||
|
export HISTFILESIZE=5000
|
||||||
|
|
||||||
|
export PAGER=less
|
||||||
|
export MANPAGER="less -isr"
|
||||||
|
export EDITOR=emacs
|
||||||
|
#export GIT_ASKPASS='/usr/bin/ksshaskpass'
|
||||||
|
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=gasp'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -100,3 +109,4 @@ export -f file_enable
|
|||||||
|
|
||||||
alias ll="ls -la"
|
alias ll="ls -la"
|
||||||
alias em="emacs"
|
alias em="emacs"
|
||||||
|
alias xw="startx"
|
||||||
|
|||||||
21
sbin/isl
21
sbin/isl
@@ -28,7 +28,8 @@
|
|||||||
# Includes
|
# Includes
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
. /usr/lib/rx3/base.bash
|
: "${RX3_LIB_DIR:=/usr/lib/rx3}"
|
||||||
|
. "${RX3_LIB_DIR}/base.bash"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -38,7 +39,7 @@
|
|||||||
# Global Variables
|
# Global Variables
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
declare -g VERSION="1.1.0"
|
declare -g VERSION="1.1.1"
|
||||||
declare -g NAME="ISL"
|
declare -g NAME="ISL"
|
||||||
declare -g HELP="usage: isl [-a | --add <URL>] | [-c | --cat [-r | --reverse]] | [-d | --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]] | [-d | --dump [-i | --inline] [-r | --reverse]] | [-t | --top [-m | --image]] | [[-h | --help] | [-V | --version] [-T | --test] [-v | --verbose]"
|
||||||
|
|
||||||
@@ -210,20 +211,20 @@ isl_add()
|
|||||||
|
|
||||||
ts=$(date -u +"%Y/%m/%d %H:%M:%S")
|
ts=$(date -u +"%Y/%m/%d %H:%M:%S")
|
||||||
|
|
||||||
if [[ ! -e ${ISL_FILE} ]]
|
if [[ ! -e "${ISL_FILE}" ]]
|
||||||
then
|
then
|
||||||
id=1
|
id=1
|
||||||
else
|
else
|
||||||
id=$(( $(wc -l <${ISL_FILE}) + 1))
|
id=$(( $(wc -l <"${ISL_FILE}") + 1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
str="${id} ${ts} ${reg} ${name} ${tag}"
|
str="${id} ${ts} ${reg} ${name} ${tag}"
|
||||||
|
|
||||||
if [[ $id == "1" ]]
|
if [[ $id == "1" ]]
|
||||||
then
|
then
|
||||||
sh_exec 'echo "${str}" >${ISL_FILE}'
|
sh_exec "echo \"${str}\" > \"${ISL_FILE}\""
|
||||||
else
|
else
|
||||||
cmd_exec sed -i '1i\'"${str}" ${ISL_FILE}
|
cmd_exec sed -i '1i\'"${str}" "${ISL_FILE}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -242,9 +243,9 @@ isl_cat()
|
|||||||
|
|
||||||
if [[ "${reverse}" == "TRUE" ]]
|
if [[ "${reverse}" == "TRUE" ]]
|
||||||
then
|
then
|
||||||
cmd_exec tac ${ISL_FILE}
|
cmd_exec tac "${ISL_FILE}"
|
||||||
else
|
else
|
||||||
cmd_exec cat ${ISL_FILE}
|
cmd_exec cat "${ISL_FILE}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -310,7 +311,7 @@ isl_top()
|
|||||||
local line=""
|
local line=""
|
||||||
|
|
||||||
|
|
||||||
line=$( head -1 ${ISL_FILE})
|
line=$( head -1 "${ISL_FILE}")
|
||||||
|
|
||||||
if [[ "$?" != "0" ]]
|
if [[ "$?" != "0" ]]
|
||||||
then
|
then
|
||||||
@@ -373,7 +374,7 @@ case "${MODE}" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"DUMP")
|
"DUMP")
|
||||||
isl_dump "${REVERSE}" "${INLINE}"
|
isl_html_dump "${REVERSE}" "${INLINE}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"TOP")
|
"TOP")
|
||||||
|
|||||||
@@ -28,7 +28,8 @@
|
|||||||
# Includes
|
# Includes
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
. /usr/lib/rx3/base.bash
|
: "${RX3_LIB_DIR:=/usr/lib/rx3}"
|
||||||
|
. "${RX3_LIB_DIR}/base.bash"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -38,7 +39,7 @@
|
|||||||
# Global Variables
|
# Global Variables
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
declare -g VERSION="1.0.0"
|
declare -g VERSION="1.0.1"
|
||||||
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] [-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] [-T | --test] [-u | --update] [-v | --verbose]"
|
||||||
|
|
||||||
@@ -182,7 +183,7 @@ do
|
|||||||
do
|
do
|
||||||
for type in "Release" "Updates"
|
for type in "Release" "Updates"
|
||||||
do
|
do
|
||||||
cmd_exec urpmi.update --no-ignore "${media}" "${arch}${type}"
|
cmd_exec urpmi.update --no-ignore "${media} ${arch}${type}"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -22,11 +22,11 @@
|
|||||||
#
|
#
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [[ "${DEFAULT_BASH}" != "" ]]
|
if [[ "${RX3_BASH_BASE}" != "" ]]
|
||||||
then
|
then
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
declare -g DEFAULT_BASH=1
|
declare -g RX3_BASH_BASE=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -164,9 +164,9 @@ cmd_exec()
|
|||||||
local caller="${FUNCNAME[1]:-MAIN}"
|
local caller="${FUNCNAME[1]:-MAIN}"
|
||||||
|
|
||||||
|
|
||||||
printf '[%s] ' "${caller}" >&2
|
printf '%s: [%s] ' "${NAME}" "${caller}" >&2
|
||||||
printf '%q ' "$@" >&2
|
printf '%q ' "$@" >&2
|
||||||
echo >&2
|
echo >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DRY_RUN}" != "TRUE" ]]
|
if [[ "${DRY_RUN}" != "TRUE" ]]
|
||||||
@@ -196,12 +196,12 @@ sh_exec()
|
|||||||
local caller="${FUNCNAME[1]:-MAIN}"
|
local caller="${FUNCNAME[1]:-MAIN}"
|
||||||
|
|
||||||
|
|
||||||
printf '[%s] bash -c %q\n' "${caller}" "$1" >&2
|
printf '%s: [%s] bash -c %q\n' "${NAME}" "${caller}" "$1" >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DRY_RUN}" != "TRUE" ]]
|
if [[ "${DRY_RUN}" != "TRUE" ]]
|
||||||
then
|
then
|
||||||
bash -c -- "$1" bash
|
bash -o errexit -o pipefail -o nounset -O extglob -c -- "$1" bash
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -331,7 +331,7 @@ file_lock()
|
|||||||
|
|
||||||
if ! flock ${flag} -w 5 ${desc}
|
if ! flock ${flag} -w 5 ${desc}
|
||||||
then
|
then
|
||||||
err_echo "Failed to acquire [${mode}] lock on: [${file}]"
|
echo_error "Failed to acquire [${mode}] lock on: [${file}]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user