Commit 76d57f70 authored by Philip Carns's avatar Philip Carns

more bug fixes to gen scripts


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@229 3b7491f3-a168-0410-bf4b-c445ed680a29
parent dc410e58
......@@ -53,7 +53,7 @@ $link_cmd =~ s/foo.o -o foo/"\$\{newallargs\}" -L$DARSHAN_LIB_PATH $CP_ZLIB_LINK
$link_cmd =~ s/$/ -L$DARSHAN_LIB_PATH -ldarshan-posix/g;
$compile_cmd =~ s/-c foo.c/"\$\{allargs\[\@\]\}"/g;
print OUTPUT <<'EOF';
print OUTPUT<<'EOF';
#!/bin/bash
#
# Auto-generated mpicc script from darshan-gen-cc.pl
......@@ -94,7 +94,7 @@ if [ "$linking" = yes ] ; then
mpilibs="$C_LINKPATH_SHL$libdir $mpilibs"
fi
EOF
print OUTPUT << "EOF";
print OUTPUT<<"EOF";
# Trial run to generate a symbol listing. We only enable Darshan if:
# a) MPI is used
# b) PMPI is _not_ used
......@@ -105,7 +105,7 @@ print OUTPUT << "EOF";
# if allargs includes any libraries, then we need to get
# -ldarshan-mpi-io in there first
newallargs=`echo ${allargs[@]} | sed 's/ -l/ -ldarshan-mpi-io -l/'`
newallargs=`echo \${allargs[@]} | sed 's/ -l/ -ldarshan-mpi-io -l/'`
used_darshan=0
......@@ -191,7 +191,7 @@ sub process_args
sub print_help
{
print <<"EOF";
print<<"EOF";
Usage: $PROGRAM_NAME <stock mpicc> --output <modified mpicc>
......
......@@ -53,7 +53,7 @@ $link_cmd =~ s/foo.o -o foo/"\$\{newallargs\}" -L$DARSHAN_LIB_PATH $CP_ZLIB_LINK
$link_cmd =~ s/$/ -L$DARSHAN_LIB_PATH -ldarshan-posix/g;
$compile_cmd =~ s/-c foo.c/"\$\{allargs\[\@\]\}"/g;
print OUTPUT <<'EOF';
print OUTPUT<<'EOF';
#!/bin/bash
#
# Auto-generated mpicc script from darshan-gen-cc.pl
......@@ -94,7 +94,7 @@ if [ "$linking" = yes ] ; then
mpilibs="$C_LINKPATH_SHL$libdir $mpilibs"
fi
EOF
print OUTPUT <<"EOF";
print OUTPUT<<"EOF";
# Trial run to generate a symbol listing. We only enable Darshan if:
# a) MPI is used
# b) PMPI is _not_ used
......@@ -105,7 +105,7 @@ print OUTPUT <<"EOF";
# if allargs includes any libraries, then we need to get
# -ldarshan-mpi-io in there first
newallargs=`echo ${allargs[@]} | sed 's/ -l/ -ldarshan-mpi-io -l/'`
newallargs=`echo \${allargs[@]} | sed 's/ -l/ -ldarshan-mpi-io -l/'`
used_darshan=0
......@@ -202,7 +202,7 @@ sub process_args
sub print_help
{
print <<"EOF";
print<<"EOF";
Usage: $PROGRAM_NAME <stock mpicxx> --output <modified mpicc>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment