diff options
author | Christian Heusel <christian@heusel.eu> | 2023-07-25 11:19:11 +0200 |
---|---|---|
committer | Christian Heusel <christian@heusel.eu> | 2023-11-20 15:00:21 +0100 |
commit | e7b82f36ef586127453e8c68660e0ef7826d0127 (patch) | |
tree | 844d2e08f360b87350f9854b1daf3773a063399f /src/lib/build/build.sh | |
parent | 4d7364ed1b893ba8498cf5a46b82413079b1131d (diff) | |
download | devtools-e7b82f36ef586127453e8c68660e0ef7826d0127.tar.xz |
feat(build): add --updpkgsums option
This is useful so people who update patches etc. can update their checksums on building.
The functionality itself was already implemented for --pkgver, but was not available separately.
Fixes #168
Component: pkgctl build
Signed-off-by: Christian Heusel <christian@heusel.eu>
Diffstat (limited to 'src/lib/build/build.sh')
-rw-r--r-- | src/lib/build/build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/build/build.sh b/src/lib/build/build.sh index 455f38a..8d58b63 100644 --- a/src/lib/build/build.sh +++ b/src/lib/build/build.sh @@ -55,6 +55,7 @@ pkgctl_build_usage() { --pkgver=PKGVER Set pkgver, reset pkgrel and update checksums --pkgrel=PKGREL Set pkgrel to a given value --rebuild Increment the current pkgrel variable + --updpkgsums Regenerate the checksums -e, --edit Edit the PKGBUILD before building RELEASE OPTIONS @@ -169,6 +170,10 @@ pkgctl_build() { PKGREL="${1#*=}" shift ;; + --updpkgsums) + UPDPKGSUMS=1 + shift + ;; --rebuild) # shellcheck source=src/lib/util/git.sh source "${_DEVTOOLS_LIBRARY_DIR}"/lib/util/git.sh |