diff options
author | atatat <atatat@pkgsrc.org> | 2003-03-26 04:50:18 +0000 |
---|---|---|
committer | atatat <atatat@pkgsrc.org> | 2003-03-26 04:50:18 +0000 |
commit | d708edcde758eaf1839fffc3da46d7910d5a8c6a (patch) | |
tree | 9f9d2b6d54b4429498e02c0b91acf7c966c32339 /pkgtools/pkgdepgraph | |
parent | d928b8f223d75ad5ec56496e1cd38fce23946ac2 (diff) | |
download | pkgsrc-d708edcde758eaf1839fffc3da46d7910d5a8c6a.tar.gz |
Stuffing the value of MAKE into the environment seems to have
undesirable side-effects, so simply call $make directly.
Jump to 2.4.
Diffstat (limited to 'pkgtools/pkgdepgraph')
-rw-r--r-- | pkgtools/pkgdepgraph/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pkgdepgraph/files/pkgdepgraph.pl | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/pkgtools/pkgdepgraph/Makefile b/pkgtools/pkgdepgraph/Makefile index db937352c32..2222809216e 100644 --- a/pkgtools/pkgdepgraph/Makefile +++ b/pkgtools/pkgdepgraph/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.8 2003/03/25 18:21:20 atatat Exp $ +# $NetBSD: Makefile,v 1.9 2003/03/26 04:50:18 atatat Exp $ # -DISTNAME= pkgdepgraph-2.3 +DISTNAME= pkgdepgraph-2.4 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkgdepgraph/files/pkgdepgraph.pl b/pkgtools/pkgdepgraph/files/pkgdepgraph.pl index c54a12af393..ce94a1d9881 100755 --- a/pkgtools/pkgdepgraph/files/pkgdepgraph.pl +++ b/pkgtools/pkgdepgraph/files/pkgdepgraph.pl @@ -3,7 +3,7 @@ # Copyright (c) 2002, 2003 by Andrew Brown <atatat@netbsd.org> # Absolutely no warranty. -# $NetBSD: pkgdepgraph.pl,v 1.6 2003/03/25 18:21:20 atatat Exp $ +# $NetBSD: pkgdepgraph.pl,v 1.7 2003/03/26 04:50:19 atatat Exp $ # pkgdepgraph: @DISTVER@ use strict; @@ -326,8 +326,7 @@ if ($delete) { ## leaf pkgs. ## if ($fetch) { - printf("MAKE=\"$make\"\nexport MAKE\n"); - map(print("( cd $pkgsrcdir/$where{$_} && \${MAKE} fetch ) &&\n"), + map(print("( cd $pkgsrcdir/$where{$_} && $make fetch ) &&\n"), grep(color($_) eq "red", @pkgs)); print("true\n"); exit(0); @@ -341,14 +340,13 @@ if ($fetch) { ## if ($rebuild) { printf("PKG_PATH=\"$packages\"\nexport PKG_PATH\n") if ($pkgadd); - printf("MAKE=\"$make\"\nexport MAKE\n") if (!$pkgadd); map($pkgadd ? printf("( pkg_info -qe %s || pkg_add %s.tgz ) &&\n", /(.*)-.*/, ($need{$_} || $_)) : - printf("( pkg_info -qe %s || ( cd %s && \${MAKE} %s%s )) &&\n", + printf("( pkg_info -qe %s || ( cd %s && $make %s%s )) &&\n", /(.*)-.*/, "$pkgsrcdir/$where{$_}", - $rebuild, $clean ? " && \${MAKE} $clean" : ""), + $rebuild, $clean ? " && $make $clean" : ""), grep(color($_) ne "green" && $ord{$_} == 1, @pkgs)); print("true\n"); exit(0); |