Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/common-functions10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 1330bd1..fe77a06 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -195,8 +195,12 @@ generate_package_metadata() {
{
{
printf 'all_depend = %s\n' 'base' 'base-devel'
- sed -n "$(printf '/^pkgname = /q;/^\tdepends = /p')" "${file_prefix}.SRCINFO"
- grep "$(printf '^\t\\(makedepends\\|checkdepends\\) = ')" "${file_prefix}.SRCINFO"
+ sed -n "$(
+ printf '/^\t%s = /p' \
+ 'depends' \
+ 'makedepends' \
+ 'checkdepends'
+ )" "${file_prefix}.SRCINFO"
} | \
cut -d= -f2 | \
sed 's|^\s\+||; s|[<>]$||' | \
@@ -211,7 +215,7 @@ generate_package_metadata() {
{
{
printf 'all_depend = %s\n' 'base'
- sed -n "$(printf '/^pkgname = /q;/^\tdepends = /p')" "${file_prefix}.SRCINFO"
+ sed -n "$(printf '/^\tdepends = /p')" "${file_prefix}.SRCINFO"
} | \
cut -d= -f2 | \
sed 's|^\s\+||; s|[<>]$||' | \