From c50a61ecbd7123a1e519ea252d9c8577b4f950a2 Mon Sep 17 00:00:00 2001 From: Fons Rademakers <Fons.Rademakers@cern.ch> Date: Tue, 25 Sep 2001 16:11:26 +0000 Subject: [PATCH] handle memprobe perl script. git-svn-id: http://root.cern.ch/svn/root/trunk@2847 27541ba8-7e3a-0410-8455-c3a389f83636 --- Makefile | 2 ++ configure | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e26b8fd4038..70b63273be1 100644 --- a/Makefile +++ b/Makefile @@ -388,6 +388,7 @@ install: $(INSTALL) $(BINDEXP) $(DESTDIR)$(BINDIR); \ fi; \ $(INSTALL) bin/root-config $(DESTDIR)$(BINDIR); \ + $(INSTALL) bin/memprobe $(DESTDIR)$(BINDIR); \ $(INSTALL) $(ALLEXECS) $(DESTDIR)$(BINDIR); \ echo "Installing libraries in $(DESTDIR)$(LIBDIR)"; \ $(INSTALLDIR) $(DESTDIR)$(LIBDIR); \ @@ -470,6 +471,7 @@ uninstall: rm -f $(DESTDIR)$(BINDIR)/`basename $(BINDEXP)`; \ fi; \ rm -f $(DESTDIR)$(BINDIR)/root-config; \ + rm -f $(DESTDIR)$(BINDIR)/memprobe; \ for i in $(ALLEXECS) ; do \ rm -f $(DESTDIR)$(BINDIR)/`basename $$i`; \ done; \ diff --git a/configure b/configure index 8c7adde5873..ddeaee470de 100755 --- a/configure +++ b/configure @@ -14,6 +14,8 @@ RCONFIN=config/root-config.in RCONFOUT=bin/root-config ROOTRCIN=config/rootrc.in ROOTRCOUT=etc/system.rootrc +MEMPROBEIN=config/memprobe.in +MEMPROBEOUT=bin/memprobe TMAKEIN=test/Makefile.in TMAKEOUT=test/Makefile @@ -117,14 +119,15 @@ else esac fi -trap "rm -f Makefile.tmp config.tmp root-config.tmp TMakefile.tmp rootrc.tmp; \ - exit 1" 1 2 3 15 +trap "rm -f Makefile.tmp config.tmp root-config.tmp TMakefile.tmp rootrc.tmp \ + memprobe.tmp; exit 1" 1 2 3 15 cp -f $MAKEIN Makefile.tmp cp -f $CONFIN config.tmp cp -f $RCONFIN root-config.tmp cp -f $TMAKEIN TMakefile.tmp cp -f $ROOTRCIN rootrc.tmp +cp -f $MEMPROBEIN memprobe.tmp if [ $# -gt 0 ]; then while [ "$1" != "" ]; do @@ -1484,6 +1487,17 @@ sed -e "s|@libdir@|$libdir|" \ rm -f rootrc.tmp echo "done" +#--------------------------------------------------------------------- +# bin/memprobe +# +echo $ac_n "Writing $MEMPROBEOUT ... $ac_c" +perlexe=`which perl` +sed -e "s|@perl@|$perlexe|" \ + < memprobe.tmp > $MEMPROBEOUT +rm -f memprobe.tmp +chmod 755 $MEMPROBEOUT +echo "done" + ###################################################################### # # FAT conversion in test/tutorials -- GitLab