summaryrefslogtreecommitdiffstats
path: root/perl-install/Makefile
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-09-23 04:24:51 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-09-23 04:24:51 +0000
commit0a4f8d6068b21e6e2b588514a5767336e3bae640 (patch)
tree723ead9ec04456836072b931674cb320011f2f38 /perl-install/Makefile
parent75ffa87f76eaeb0d0b6c803bb3a170bf9f3a8581 (diff)
downloaddrakx-0a4f8d6068b21e6e2b588514a5767336e3bae640.tar
drakx-0a4f8d6068b21e6e2b588514a5767336e3bae640.tar.gz
drakx-0a4f8d6068b21e6e2b588514a5767336e3bae640.tar.bz2
drakx-0a4f8d6068b21e6e2b588514a5767336e3bae640.tar.xz
drakx-0a4f8d6068b21e6e2b588514a5767336e3bae640.zip
Introducing TMPDIR
Diffstat (limited to 'perl-install/Makefile')
-rw-r--r--perl-install/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile
index 649ba9410..b27e6a4a9 100644
--- a/perl-install/Makefile
+++ b/perl-install/Makefile
@@ -86,18 +86,18 @@ get_needed_files: $(DIRS) mo_files
eval `perl -V:version`; \
cat share/list `../tools/specific_arch share/list` | \
perl -pe "s/ARCH/$(ARCH)/g ; s/PERL_VERSION/$$version/g ; s|/LIB/|/$(LIB)/|g " | \
- perl -lpe '@l = glob; m|\*.*/| && @l != 1 and die "no/multiple match for $$_\n"; $$_ = join("\n", @l)' > /tmp/list
- rpm -ql perl-Gtk2 perl-Glib | grep '^/usr/lib/perl5' | grep -v '\.pod$$' >> /tmp/list
+ perl -lpe '@l = glob; m|\*.*/| && @l != 1 and die "no/multiple match for $$_\n"; $$_ = join("\n", @l)' > $(TMPDIR)/list
+ rpm -ql perl-Gtk2 perl-Glib | grep '^/usr/lib/perl5' | grep -v '\.pod$$' >> $(TMPDIR)/list
- @missing=`perl -lne 'print if !-e $$_' /tmp/list`; [ -z "$$missing" ] || { echo "missing or multiple files vvvvvvvvvvvvvvvvvvvvvvvvvv" ; echo "$$missing" ; echo "missing or multiple files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" ; exit 1; }
+ @missing=`perl -lne 'print if !-e $$_' $(TMPDIR)/list`; [ -z "$$missing" ] || { echo "missing or multiple files vvvvvvvvvvvvvvvvvvvvvvvvvv" ; echo "$$missing" ; echo "missing or multiple files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" ; exit 1; }
- find auto -follow -name "*.so" >> /tmp/list
+ find auto -follow -name "*.so" >> $(TMPDIR)/list
- for i in $(LOCALFILES) `cat /tmp/list` ; do \
- ldd $$i 2>/dev/null | grep "=>" | perl -pe 's/.*=> //; s/ .*//; s,^/lib/.*?/,/lib/,' | sort | uniq >> /tmp/list; \
+ for i in $(LOCALFILES) `cat $(TMPDIR)/list` ; do \
+ ldd $$i 2>/dev/null | grep "=>" | perl -pe 's/.*=> //; s/ .*//; s,^/lib/.*?/,/lib/,' | sort | uniq >> $(TMPDIR)/list; \
done
- perl -Mlang -I. -e 'print "$$_\n" foreach lang::console_font_files()' >> /tmp/list
+ perl -Mlang -I. -e 'print "$$_\n" foreach lang::console_font_files()' >> $(TMPDIR)/list
install -d $(DEST)/etc
install -d $(DEST)/etc/sysconfig/network-scripts
@@ -128,7 +128,7 @@ ifeq (i386,$(ARCH))
install -s /sbin/cardmgr $(DEST)/usr/bin
endif
- for i in `cat /tmp/list`; do \
+ for i in `cat $(TMPDIR)/list`; do \
if (echo $$i | grep -q "lib/[^/]*\.so"); then \
install -s $$i $(DEST)/lib; \
elif (echo $$i | grep -q "lib64/[^/]*\.so"); then \