summaryrefslogtreecommitdiffstats
path: root/perl-install/Makefile
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-06-06 08:29:55 +0000
committerFrancois Pons <fpons@mandriva.com>2001-06-06 08:29:55 +0000
commita6a0844f535a158c60c547b982971afb38c35b5b (patch)
treee21bccc637c7a2660a5580e26e1c2d5d035d432f /perl-install/Makefile
parent091b6bef31170f0a00d21ae6b07a8ba041bbc41b (diff)
downloaddrakx-a6a0844f535a158c60c547b982971afb38c35b5b.tar
drakx-a6a0844f535a158c60c547b982971afb38c35b5b.tar.gz
drakx-a6a0844f535a158c60c547b982971afb38c35b5b.tar.bz2
drakx-a6a0844f535a158c60c547b982971afb38c35b5b.tar.xz
drakx-a6a0844f535a158c60c547b982971afb38c35b5b.zip
Avoid hard coded perl version in list files, use PERL_VERSION magic
string instead.
Diffstat (limited to 'perl-install/Makefile')
-rw-r--r--perl-install/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile
index e89af3dab..f5e855c26 100644
--- a/perl-install/Makefile
+++ b/perl-install/Makefile
@@ -54,12 +54,10 @@ install_pms: $(DIRS)
get_needed_files: $(DIRS)
# export PERL_INSTALL_TEST=1 ; strace -f -e trace=file -o '| grep -v "(No such file or directory)" | sed -e "s/[^\"]*\"//" -e "s/\".*//" | grep "^/" | grep -v -e "^/tmp" -e "^/home" -e "^/proc" -e "^/var" -e "^/dev" -e "^/etc" -e "^/usr/lib/rpm" > /tmp/list ' $(PERL) -d install2 < /dev/null
- perl -pe "s/ARCH/$(ARCH)/g" share/list > /tmp/list
+ eval `perl -V:version`; \
+ cat share/list `../tools/specific_arch share/list` | \
+ perl -pe "s/ARCH/$(ARCH)/g" | perl -pe "s/PERL_VERSION/$$version/g" > /tmp/list
-# perl -pi -e 's/00503/6.0/g' /tmp/list
-# see also /usr/lib/perl5/5.00503/ARCH-linux/Data/Dumper.pm
-
- cat `../tools/specific_arch share/list` >> /tmp/list
@missing=`perl -lne 'print if !-e $$_' /tmp/list`; [ -z "$$missing" ] || { echo "missing files vvvvvvvvvvvvvvvvvvvvvvvvvv" ; echo "$$missing" ; echo "missing files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" ; exit 1; }
find auto -follow -name "*.so" >> /tmp/list