]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
added an exit of the make_script in case of errors , mt
authorMichael Traxler <M.Traxler@gsi.de>
Fri, 8 Feb 2013 13:46:00 +0000 (14:46 +0100)
committerMichael Traxler <M.Traxler@gsi.de>
Fri, 8 Feb 2013 13:46:00 +0000 (14:46 +0100)
allParam/Makefile
make_script.pl

index 703b618a90cc6422cb30f71baa2b7c38b9138c2c..ad56e898ccd7312662770d657a1a0afedafecce0 100644 (file)
@@ -210,18 +210,18 @@ am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
   | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
 distcleancheck_listfiles = find . -type f -print
 VPATH = . ./ora
-ACLOCAL = ${SHELL} /home/hadaq/delme/allParam/config/missing --run aclocal-1.12
+ACLOCAL = ${SHELL} /home/michael/p/hades/trbsoft/daqdata/allParam/config/missing --run aclocal-1.12
 ALLPARAM_H = include/allParam.h
 AMTAR = $${TAR-tar}
-AUTOCONF = ${SHELL} /home/hadaq/delme/allParam/config/missing --run autoconf
-AUTOHEADER = ${SHELL} /home/hadaq/delme/allParam/config/missing --run autoheader
-AUTOMAKE = ${SHELL} /home/hadaq/delme/allParam/config/missing --run automake-1.12
+AUTOCONF = ${SHELL} /home/michael/p/hades/trbsoft/daqdata/allParam/config/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/michael/p/hades/trbsoft/daqdata/allParam/config/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/michael/p/hades/trbsoft/daqdata/allParam/config/missing --run automake-1.12
 AWK = gawk
 CC = gcc -ansi
 CCDEPMODE = depmode=gcc3
 CFLAGS = -Wall -pedantic -g -O3 -fconserve-space -finline-functions
 CPP = gcc -E
-CPPFLAGS = -I/home/hadaq/delme/include
+CPPFLAGS = -I/home/michael/p/hades/trbsoft/daqdata/include
 CXX = g++ -ansi
 CXXDEPMODE = depmode=gcc3
 CXXFLAGS = -Wall -pedantic -g -O3 -fconserve-space -finline-functions
@@ -239,7 +239,7 @@ INSTALL_DATA = ${INSTALL} -m 644
 INSTALL_PROGRAM = ${INSTALL}
 INSTALL_SCRIPT = ${INSTALL}
 INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS = -L/home/hadaq/delme/lib64
+LDFLAGS = -L/home/michael/p/hades/trbsoft/daqdata/lib64
 LIBCAPARAM_A = 
 LIBFILEPARAM_A = 
 LIBOBJS = 
@@ -249,7 +249,7 @@ LIBS = -ltclParam_p -ltcl8.5 -lpthread -lcompat
 LIBTCLPARAM_A = libtclParam.a libtclParam_p.a
 LTLIBOBJS = 
 MAINT = #
-MAKEINFO = ${SHELL} /home/hadaq/delme/allParam/config/missing --run makeinfo
+MAKEINFO = ${SHELL} /home/michael/p/hades/trbsoft/daqdata/allParam/config/missing --run makeinfo
 MKDIR_P = /bin/mkdir -p
 OBJEXT = o
 PACKAGE = allParam
@@ -269,10 +269,10 @@ SET_MAKE =
 SHELL = /bin/sh
 STRIP = 
 VERSION = 0.4
-abs_builddir = /home/hadaq/delme/allParam
-abs_srcdir = /home/hadaq/delme/allParam
-abs_top_builddir = /home/hadaq/delme/allParam
-abs_top_srcdir = /home/hadaq/delme/allParam
+abs_builddir = /home/michael/p/hades/trbsoft/daqdata/allParam
+abs_srcdir = /home/michael/p/hades/trbsoft/daqdata/allParam
+abs_top_builddir = /home/michael/p/hades/trbsoft/daqdata/allParam
+abs_top_srcdir = /home/michael/p/hades/trbsoft/daqdata/allParam
 ac_ct_CC = gcc
 ac_ct_CXX = g++
 am__include = include
@@ -292,7 +292,7 @@ host_alias =
 htmldir = ${docdir}
 includedir = ${prefix}/include
 infodir = ${datarootdir}/info
-install_sh = ${SHELL} /home/hadaq/delme/allParam/config/install-sh
+install_sh = ${SHELL} /home/michael/p/hades/trbsoft/daqdata/allParam/config/install-sh
 libdir = ${exec_prefix}/lib64
 libexecdir = ${exec_prefix}/lib
 localedir = ${datarootdir}/locale
@@ -301,7 +301,7 @@ mandir = ${datarootdir}/man
 mkdir_p = /bin/mkdir -p
 oldincludedir = /usr/include
 pdfdir = ${docdir}
-prefix = /home/hadaq/delme
+prefix = /home/michael/p/hades/trbsoft/daqdata
 program_transform_name = s,$$,_tcl,
 psdir = ${docdir}
 sbindir = ${exec_prefix}/sbin
index 1f039dac8d81f31a78c146532a93dac69d4dd384..56aeb7dbe733395443a20da18de66c9d806187ec 100755 (executable)
@@ -5,21 +5,27 @@ chomp $path;
 
 foreach my $dir ("allParam", "compat", "hadaq") {
 
-    my $command = <<EOF;
+    print "chdir to $dir\n";
+    chdir $dir;
 
-cd $dir
+    my $command = <<EOF;
 bash bootstrap
 CPPFLAGS="-I$path/include" LDFLAGS="-L$path/lib64" ./configure --prefix="$path"
 make clean
 make 
 make install
-cd ..
-
 EOF
 
-print "I will execute: $command";
-system $command;
-
-
+  my @commands = split /\n/, $command;
+  foreach my $current_command (@commands) {
+      print "execute: $current_command\n";
+      my $result = system($current_command);
+      if ($result != 0 ){
+         print "error in compile script. return value of command '$current_command' was not successfull! return value: $result reason: $! and: $?\n;";
+         exit;
+      }
+  }
+    print "chdir to '..'\n";
+    chdir "..";
 
 }