From 1d6a74491f39666d11bd25c3ac890a50daf38205 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 13 Jun 2001 15:19:21 +0000 Subject: manage perl version for build without hard coding it. --- tools/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/Makefile') diff --git a/tools/Makefile b/tools/Makefile index fee62d3aa..681f5748f 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -17,8 +17,8 @@ install: install make_mdkinst_stage2 $(ROOTDEST)/misc 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; } - cd /usr/lib/perl5/site_perl/5.6.1/*-linux ; install packdrake.pm rpmtools.pm $(ROOTDEST)/misc || { echo "install rpmtools first!" ; exit 1; } - cd /usr/lib/perl5/site_perl/5.6.1/*-linux/auto ; cp -rf rpmtools $(ROOTDEST)/misc/auto || { echo "install rpmtools first!" ; exit 1; } + eval `perl -V:version`; cd /usr/lib/perl5/site_perl/$$version/*-linux ; install packdrake.pm rpmtools.pm $(ROOTDEST)/misc || { echo "install rpmtools first!" ; exit 1; } + eval `perl -V:version`; cd /usr/lib/perl5/site_perl/$$version/*-linux/auto ; cp -rf rpmtools $(ROOTDEST)/misc/auto || { echo "install rpmtools first!" ; exit 1; } mkdir -p $(DEST)/usr/bin xhost+: %: %.c -- cgit v1.2.1