mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit e4915d253d249b1a3c92c57a709b08f90855fb84
parent 472630623a23cd7f29292af4d820de512d9338a9
Author: z3bra <willyatmailoodotorg>
Date:   Fri Jan 15 22:59:27 2016

Fix parsing while checking archive content

Diffstat:
 default.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/default.mk b/default.mk @@ -41,8 +41,11 @@ fetch-git:QV: fetch-archive:QV: if [ -n "$url" ]; then out=$(curl -LOw %{filename_effective} $url) - src=$(tar -xvf $out|sed -n 1p|tr -d /) + src=$(tar -xvf $out|sed -n 1p|cut -f1 -d/) if [ "$src" != "$pkg-$ver" ]; then + pwd + ls -l + echo mv "$src" "$pkg-$ver" mv "$src" "$pkg-$ver" fi fi