[pacman-dev] [PATCH] makepkg: list files containing $srcdir (FS#31558)
Phillip Smith
lists at fukawi2.nl
Mon May 20 23:38:57 EDT 2013
On 21 May 2013 09:21, Allan McRae <allan at archlinux.org> wrote:
> allan at arya ~
> > mapfile -t srcdir_refs < <(cd "tmp" && find -type f -exec grep -Il
> "10" {} +)
>
> allan at arya ~
> > echo ${srcdir_refs[@]}
> ./out/out-7.txt ./out/out-3.txt ./out/out-2.txt ./out/out-9.txt
> ./out/out-8.txt ./out/out-5.txt ./out/out-4.txt ./out/out-1.txt
> ./out/out-6.txt
>
> allan at arya ~
> > printf " %s\n" ${srcdir_refs[@]}
> ./out/out-7.txt
> ./out/out-3.txt
> ./out/out-2.txt
> ./out/out-9.txt
> ./out/out-8.txt
> ./out/out-5.txt
> ./out/out-4.txt
> ./out/out-1.txt
> ./out/out-6.txt
>
>
Buggered if I know; did not work when I tested it.
More information about the pacman-dev
mailing list