summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-06-13 15:19:21 +0000
committerFrancois Pons <fpons@mandriva.com>2001-06-13 15:19:21 +0000
commit1d6a74491f39666d11bd25c3ac890a50daf38205 (patch)
treefe35818a5c3cde691dfebeaa29bbd3c086a3e666
parent34a5d9236366d112abaaeb2b2ac0bd1738dd3220 (diff)
downloaddrakx-1d6a74491f39666d11bd25c3ac890a50daf38205.tar
drakx-1d6a74491f39666d11bd25c3ac890a50daf38205.tar.gz
drakx-1d6a74491f39666d11bd25c3ac890a50daf38205.tar.bz2
drakx-1d6a74491f39666d11bd25c3ac890a50daf38205.tar.xz
drakx-1d6a74491f39666d11bd25c3ac890a50daf38205.zip
manage perl version for build without hard coding it.
-rw-r--r--tools/Makefile4
1 files changed, 2 insertions, 2 deletions
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