mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-10-05 12:06:18 +02:00
Compare commits
2 Commits
master
...
d6113241aa
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d6113241aa | ||
![]() |
6a1a0f6b50 |
@@ -197,6 +197,7 @@ _pkgctl_build_args=(
|
||||
--pkgrel
|
||||
--rebuild
|
||||
--update-checksums
|
||||
--version-upgrade
|
||||
-e --edit
|
||||
|
||||
-r --release
|
||||
|
@@ -59,6 +59,7 @@ _pkgctl_build_args=(
|
||||
'--pkgrel=[Set pkgrel to a given value]:pkgrel:'
|
||||
'--rebuild[Increment the pkgrel variable]'
|
||||
'--update-checksums[Force computation and update of the checksums (disables auto-detection)]'
|
||||
'--version-upgrade[Adjust the PKGBUILD to match the latest upstream version (via pkgctl version upgrade)]'
|
||||
'(-e --edit)'{-e,--edit}'[Edit the PKGBUILD before building]'
|
||||
'(-r --release)'{-r,--release}'[Automatically commit, tag and release after building]'
|
||||
'(-m --message)'{-m,--message}"[Use the given <msg> as the commit message]:message:"
|
||||
|
@@ -3,7 +3,7 @@ pkgctl-auth(1)
|
||||
|
||||
Name
|
||||
----
|
||||
pkgctl-auth - Authenticate with services like GitLab.
|
||||
pkgctl-auth - Authenticate with serivces like GitLab.
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
@@ -84,6 +84,9 @@ PKGBUILD Options
|
||||
are either automatically updated when upgrading a package using `--pkgver`
|
||||
or should remain immutable during rebuilds.
|
||||
|
||||
*--version-upgrade*::
|
||||
Adjust the PKGBUILD to match the latest upstream version (via `pkgctl version upgrade`).
|
||||
|
||||
*-e, --edit*::
|
||||
Edit the PKGBUILD before building
|
||||
|
||||
|
@@ -49,9 +49,6 @@ pkgctl diff::
|
||||
pkgctl issue::
|
||||
Work with GitLab packaging issues
|
||||
|
||||
pkgctl license::
|
||||
Check and manage package licenses
|
||||
|
||||
pkgctl release::
|
||||
Release step to commit, tag and upload build artifacts
|
||||
|
||||
@@ -73,7 +70,6 @@ pkgctl-build(1)
|
||||
pkgctl-db(1)
|
||||
pkgctl-diff(1)
|
||||
pkgctl-issue(1)
|
||||
pkgctl-license(1)
|
||||
pkgctl-release(1)
|
||||
pkgctl-repo(1)
|
||||
pkgctl-search(1)
|
||||
|
@@ -67,6 +67,7 @@ pkgctl_build_usage() {
|
||||
--pkgrel=PKGREL Set pkgrel to a given value
|
||||
--rebuild Increment the current pkgrel variable
|
||||
--update-checksums Force computation and update of the checksums (disables auto-detection)
|
||||
--version-upgrade Adjust the PKGBUILD to match the latest upstream version (via pkgctl version upgrade)
|
||||
-e, --edit Edit the PKGBUILD before building
|
||||
|
||||
RELEASE OPTIONS
|
||||
@@ -116,6 +117,7 @@ pkgctl_build() {
|
||||
fi
|
||||
|
||||
local UPDATE_CHECKSUMS=0
|
||||
local VERSION_UPGRADE=0
|
||||
local EDIT=0
|
||||
local REBUILD=0
|
||||
local OFFLOAD=0
|
||||
@@ -187,6 +189,10 @@ pkgctl_build() {
|
||||
UPDATE_CHECKSUMS=1
|
||||
shift
|
||||
;;
|
||||
--version-upgrade)
|
||||
VERSION_UPGRADE=1
|
||||
shift
|
||||
;;
|
||||
--rebuild)
|
||||
# shellcheck source=src/lib/util/git.sh
|
||||
source "${_DEVTOOLS_LIBRARY_DIR}"/lib/util/git.sh
|
||||
@@ -452,6 +458,13 @@ pkgctl_build() {
|
||||
. ./PKGBUILD
|
||||
fi
|
||||
|
||||
# update PKGBUILD to the latest upstream version
|
||||
if (( VERSION_UPGRADE )); then
|
||||
if ! $(pkgctl_version_upgrade); then
|
||||
die
|
||||
fi
|
||||
fi
|
||||
|
||||
# execute build
|
||||
for arch in "${BUILD_ARCH[@]}"; do
|
||||
if [[ -n $arch ]]; then
|
||||
|
@@ -54,8 +54,7 @@ export RSYNC_OPTS=(
|
||||
--human-readable
|
||||
--progress
|
||||
--partial
|
||||
# suffix the partial dir with the PID in order to avoid clashes
|
||||
--partial-dir=.partial.$$
|
||||
--partial-dir=.partial
|
||||
--delay-updates
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user