From 31fb98113f42030828f800a0867948e92975d327 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 26 Jun 2017 09:24:48 +0200 Subject: bin/mksrcinfo: use bash, also print *_i686 --- bin/mksrcinfo | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bin/mksrcinfo') diff --git a/bin/mksrcinfo b/bin/mksrcinfo index e412178..a2c9145 100755 --- a/bin/mksrcinfo +++ b/bin/mksrcinfo @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # generate .SRCINFO from PKGBUILD # bleh - this should really be handled by makepkg! @@ -12,9 +12,11 @@ printf 'pkgbase = %s\n' "${pkgbase}" fi printf '\tarch = %s\n' "${arch[@]}" - printf '\tmakedepends = %s\n' "${makedepends[@]}" - printf '\tcheckdepends = %s\n' "${checkdepends[@]}" - printf '\tdepends = %s\n' "${depends[@]}" - printf '\tprovides = %s\n' "${provides[@]}" + for print in 'makedepends' 'checkdepends' 'depends' 'provides'; do + printf '\t'"${print}"' = %s\n' $(eval echo '${'"${print}"'[@]}') + for a in 'i686'; do + printf '\t'"${print}"' = %s\n' $(eval echo '${'"${print}_${a}"'[@]}') + done + done printf 'pkgname = %s\n' "${pkgname[@]}" ) > .SRCINFO -- cgit v1.2.3-70-g09d2