Skip to content
Snippets Groups Projects
Commit ae58a5d5 authored by nadolski's avatar nadolski
Browse files

no message

parent b6eccee1
Branches
No related tags found
No related merge requests found
#!/bin/sh
time=`date --iso-8601`
dir=`pwd`
tracy="tracy-3.5"
# set home directory
cd "$dir/$tracy"
# clean up directory
make distclean
rm -rf autom4te.cache
rm -rf aclocal.m4
rm -rf bin/*
rm -rf tracy/bin/*
cd $dir
fname="back_up_$tracy.$time.tgz"
cmd_str="tar -czf $fname "back_up_$tracy.sh" "make_$tracy.sh" $tracy"
echo "$cmd_str"
`$cmd_str`
#!/bin/bash
#===================================================
# script to compile non-parallel version tracy
#===================================================
# not sh since on Ubuntu sh is not bash
set -x # for debugging
if [ $# -ne 1 ]
then # affiche l'usage
echo "Missing parameter"
echo "Use: $0 debug for debug"
echo "Use: $0 opt for optimization result"
exit 1
fi
dir=`pwd`
#NUM_REC="$dir/num_rec"
#INSTALL="/usr/bin/install"
TRACY="tracy"
cd "$dir/$TRACY"
# CVS file is inside, do not erase
#rm -rf autom4te.cache
rm -rf aclocal.m4
make distclean
./bootstrap
if [ $1 == "debug" ]
then
F77=gfortran ./configure --prefix=$dir/$TRACY/tracy FFLAGS="-g -O2 -Wall -fbounds-check" CFLAGS="-g -O2 -Wall -fno-implicit-templates" CXXFLAGS="-g -O2 -Wall -fno-implicit-templates"
fi
if [ $1 == "opt" ]
then
./configure --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -Wall -fno-implicit-templates" CXXFLAGS="-O2 -Wall -fno-implicit-templates"
fi
make
make install
#!/bin/sh
dir=`pwd`
#NUM_REC="$dir/num_rec"
#INSTALL="/usr/bin/install"
TRACY="tracy"
cd "$dir/$TRACY"
export TRACY_LIB="$dir/tracy"
export NUM_REC="/usr/local/applications/physmach/recipes_c-ansi"
rm -rf autom4te.cache
rm -rf aclocal.m4
make distclean
./bootstrap
FFLAGS="-O2 -Wall -fbounds-check" CXXFLAGS="-O2 -Wall -fno-implicit-templates" CC=icc F77=ifort CXX=icc ./configure --prefix=$dir/$TRACY/tracy
make
make install
#!/bin/sh
dir=`pwd`
#NUM_REC="$dir/num_rec"
#INSTALL="/usr/bin/install"
TRACY="tracy"
cd "$dir/$TRACY"
rm -rf autom4te.cache
rm -rf aclocal.m4
make distclean
./bootstrap
./configure --prefix=$dir/$TRACY/tracy
make
make install
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment