From 7e2907ae1c1c48c619f37371b73a3fe3002153f5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 9 Jul 2004 03:29:37 +0000 Subject: ask perl where to find package.pm and URPM.pm, this is more versatile than using installvendorlib --- tools/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/Makefile') diff --git a/tools/Makefile b/tools/Makefile index 38507bab1..cafff8e29 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -22,11 +22,11 @@ $(DIRS): install: @install -d $(ROOTDEST)/misc/auto @install make_mdkinst_stage2 $(ROOTDEST)/misc + @cp -rf `perl -Mpackdrake -le 'print $$INC{"packdrake.pm"}'` $(ROOTDEST)/misc || { echo "install rpmtools first!" ; exit 1; } + @cp -rf `perl -MURPM -le 'print $$INC{"URPM.pm"}' | sed s/URPM.pm//`URPM* $(ROOTDEST)/misc || { echo "install perl-URPM first!" ; exit 1; } + @cp -rf `perl -MURPM -le 'print $$INC{"URPM.pm"}' | sed s/URPM.pm//`auto/URPM $(ROOTDEST)/misc/auto || { echo "install perl-URPM first!" ; exit 1; } @cd /usr/bin ; install packdrake $(ROOTDEST)/misc || { echo "packdrake is missing"; exit 1; } @cd /usr/bin ; install gendistrib rpm2header $(ROOTDEST)/misc || { echo "install rpmtools first!" ; exit 1; } - @eval `perl -V:installvendorlib`; cd $$installvendorlib ; cp -rf packdrake.pm $(ROOTDEST)/misc || { echo "install rpmtools first!" ; exit 1; } - @eval `perl -V:installvendorarch`; cd $$installvendorarch ; cp -rf URPM* $(ROOTDEST)/misc || { echo "install perl-URPM first!" ; exit 1; } - @eval `perl -V:installvendorarch`; cd $$installvendorarch/auto ; cp -rf URPM $(ROOTDEST)/misc/auto || { echo "install perl-URPM first!" ; exit 1; } @mkdir -p $(DEST)/usr/bin xhost+: %: %.c -- cgit v1.2.1