mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-16 03:16:19 +02:00
Compare commits
1 Commits
6dd555ed1f
...
fix/clean-
Author | SHA1 | Date | |
---|---|---|---|
![]() |
19728506e3 |
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
|||||||
SHELL=/bin/bash -o pipefail
|
SHELL=/bin/bash -o pipefail
|
||||||
|
|
||||||
V=1.3.2
|
V=1.3.1
|
||||||
BUILDTOOLVER ?= $(V)
|
BUILDTOOLVER ?= $(V)
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
# Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
|
# Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
|
||||||
# linkman:rustc[1] for more details on the available flags.
|
# linkman:rustc[1] for more details on the available flags.
|
||||||
RUSTFLAGS="-C force-frame-pointers=yes"
|
RUSTFLAGS="-Cforce-frame-pointers=yes"
|
||||||
|
|
||||||
# Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
|
# Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
|
||||||
# Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for
|
# Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for
|
||||||
|
@@ -116,6 +116,9 @@ copy_hostconf () {
|
|||||||
cp "$makepkg_conf" "$working_dir/etc/makepkg.conf"
|
cp "$makepkg_conf" "$working_dir/etc/makepkg.conf"
|
||||||
if [[ -d "${makepkg_conf}.d" ]] && is_globfile "${makepkg_conf}.d"/*.conf; then
|
if [[ -d "${makepkg_conf}.d" ]] && is_globfile "${makepkg_conf}.d"/*.conf; then
|
||||||
mkdir --parents "$working_dir/etc/makepkg.conf.d/"
|
mkdir --parents "$working_dir/etc/makepkg.conf.d/"
|
||||||
|
if is_globfile "$working_dir/etc/makepkg.conf.d"/*.conf; then
|
||||||
|
rm --force "$working_dir/etc/makepkg.conf.d"/*.conf
|
||||||
|
fi
|
||||||
cp "${makepkg_conf}.d/"*.conf "$working_dir/etc/makepkg.conf.d/"
|
cp "${makepkg_conf}.d/"*.conf "$working_dir/etc/makepkg.conf.d/"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@@ -26,10 +26,10 @@ pkgbuild_set_pkgver() {
|
|||||||
warning 'setting pkgver variable has no effect if the PKGBUILD has a pkgver() function'
|
warning 'setting pkgver variable has no effect if the PKGBUILD has a pkgver() function'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep --fixed-strings --line-regexp --quiet --max-count=1 "pkgver=${pkgver}" PKGBUILD; then
|
if ! grep --extended-regexp --quiet --max-count=1 "^pkgver=${pkgver}$" PKGBUILD; then
|
||||||
die "Non-standard pkgver declaration"
|
die "Non-standard pkgver declaration"
|
||||||
fi
|
fi
|
||||||
sed "s|^pkgver=${pkgver}$|pkgver=${new_pkgver}|g" --in-place PKGBUILD
|
sed --regexp-extended "s|^(pkgver=)${pkgver}$|\1${new_pkgver}|g" --in-place PKGBUILD
|
||||||
}
|
}
|
||||||
|
|
||||||
# set the pkgrel variable in a PKGBUILD
|
# set the pkgrel variable in a PKGBUILD
|
||||||
@@ -38,10 +38,10 @@ pkgbuild_set_pkgrel() {
|
|||||||
local new_pkgrel=$1
|
local new_pkgrel=$1
|
||||||
local pkgrel=${pkgrel}
|
local pkgrel=${pkgrel}
|
||||||
|
|
||||||
if ! grep --fixed-strings --line-regexp --quiet --max-count=1 "pkgrel=${pkgrel}" PKGBUILD; then
|
if ! grep --extended-regexp --quiet --max-count=1 "^pkgrel=${pkgrel}$" PKGBUILD; then
|
||||||
die "Non-standard pkgrel declaration"
|
die "Non-standard pkgrel declaration"
|
||||||
fi
|
fi
|
||||||
sed "s|^pkgrel=${pkgrel}$|pkgrel=${new_pkgrel}|g" --in-place PKGBUILD
|
sed --regexp-extended "s|^(pkgrel=)${pkgrel}$|\1${new_pkgrel}|g" --in-place PKGBUILD
|
||||||
}
|
}
|
||||||
|
|
||||||
pkgbuild_update_checksums() {
|
pkgbuild_update_checksums() {
|
||||||
|
Reference in New Issue
Block a user