From 73da323850e92fee4dd0f8f8229aea69e8b928ed Mon Sep 17 00:00:00 2001 From: Andreas Lauser <and@poware.org> Date: Mon, 17 Jan 2011 10:05:00 +0000 Subject: [PATCH] option files: improve way to find the directory where dumux is contained git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@5019 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- debug.opts | 2 +- optim.opts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debug.opts b/debug.opts index ce9ad98075..3d15fd0912 100644 --- a/debug.opts +++ b/debug.opts @@ -1,5 +1,5 @@ # path to the dumux includes -DUMUXDIR=$(find $OLDPWD -name "dune.module" | grep -h dumux | sed "s/dune.module//") +DUMUXDIR=$(find $OLDPWD -name "dune.module" | xargs grep -El '[[:space:]]*Module:[[:space:]]*dumux[[:space:]]*$' | sed "s/dune.module//") # configure flags CONFIGURE_FLAGS="CXXFLAGS=\"-I$DUMUXDIR -Wall -Wno-sign-compare -fno-strict-aliasing -g\" \ diff --git a/optim.opts b/optim.opts index 52d031ae84..47dd44e5ff 100644 --- a/optim.opts +++ b/optim.opts @@ -1,5 +1,5 @@ # path to the dumux includes -DUMUXDIR=$(find $OLDPWD -name "dune.module" | grep -h dumux | sed "s/dune.module//") +DUMUXDIR=$(find $OLDPWD -name "dune.module" | xargs grep -El '[[:space:]]*Module:[[:space:]]*dumux[[:space:]]*$' | sed "s/dune.module//") # configure flags CONFIGURE_FLAGS="CXXFLAGS=\"-I$DUMUXDIR -Wall -Wno-sign-compare -fno-strict-aliasing -O3 -march=native -DNDEBUG\" \ -- GitLab