Skip to content

Commit

Permalink
Merge pull request #141 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 3.4.2
  • Loading branch information
andyone authored Dec 12, 2024
2 parents 648b528 + eabcfba commit 7bd5bad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
17 changes: 8 additions & 9 deletions SOURCES/rpmbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
APP="RPMBuilder"

# Utility version (String)
VER="3.4.1"
VER="3.4.2"

# Utility description (String)
DESC="RPM package build helper"
Expand Down Expand Up @@ -272,8 +272,9 @@ main() {
fi

require "build"

startBuild "$@"

exit $?
}

# Load libexec script
Expand Down Expand Up @@ -612,16 +613,15 @@ if [[ "$*" =~ "--tmux-worker" ]] ; then
unset remote parallel
fi

## OPTIONS PARSING 5 ###################################################################
## OPTIONS PARSING 6 ###########################################################

if [[ $# -eq 0 ]] ; then
main
exit $?
fi

unset opt optn optm optv optt optk

optv="$*" ; optt=""
optv="$*" ; optt=()

while [[ -n "$1" ]] ; do
if [[ "$1" =~ \ && -n "$optn" ]] ; then
Expand Down Expand Up @@ -711,15 +711,14 @@ while [[ -n "$1" ]] ; do
fi
fi

optt="$optt $1" ; shift

optt+=("$1") ; shift
done

[[ -n "$optn" ]] && declare "$optn=true"

unset opt optn optm optk

# shellcheck disable=SC2015,SC2086
[[ -n "$KEEP_OPTS" ]] && main $optv || main ${optt:1}
[[ -n "$KEEP_OPTS" ]] && main $optv || main "${optt[@]}"

########################################################################################
################################################################################
13 changes: 6 additions & 7 deletions SOURCES/rpmunbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
APP="RPMUnbuilder"

# Utility version (String)
VER="1.3.0"
VER="1.3.1"

################################################################################

Expand Down Expand Up @@ -322,15 +322,15 @@ about() {
show "Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>" $DARK
}

## OPTIONS PARSING 5 ###################################################################
## OPTIONS PARSING 6 ###########################################################

if [[ $# -eq 0 ]] ; then
main
fi

unset opt optn optm optv optt optk

optv="$*" ; optt=""
optv="$*" ; optt=()

while [[ -n "$1" ]] ; do
if [[ "$1" =~ \ && -n "$optn" ]] ; then
Expand Down Expand Up @@ -420,15 +420,14 @@ while [[ -n "$1" ]] ; do
fi
fi

optt="$optt $1" ; shift

optt+=("$1") ; shift
done

[[ -n "$optn" ]] && declare "$optn=true"

unset opt optn optm optk

# shellcheck disable=SC2015,SC2086
[[ -n "$KEEP_OPTS" ]] && main $optv || main ${optt:1}
[[ -n "$KEEP_OPTS" ]] && main $optv || main "${optt[@]}"

########################################################################################
################################################################################
5 changes: 4 additions & 1 deletion rpmbuilder.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Summary: RPM package build helper
Name: rpmbuilder
Version: 3.4.1
Version: 3.4.2
Release: 0%{?dist}
License: Apache License, Version 2.0
Group: Development/Tools
Expand Down Expand Up @@ -58,6 +58,9 @@ install -pm 644 libexec/* %{buildroot}%{_libexecdir}/%{name}/
################################################################################

%changelog
* Fri Dec 06 2024 Anton Novojilov <[email protected]> - 3.4.2-0
- Improved options parsing

* Wed Sep 11 2024 Anton Novojilov <[email protected]> - 3.4.1-0
- Improved spec validation

Expand Down

0 comments on commit 7bd5bad

Please sign in to comment.