Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
481e0db5
Commit
481e0db5
authored
18 years ago
by
Sreejith Pulloor Kuttanikkad
Browse files
Options
Downloads
Patches
Plain Diff
some script modifications
[[Imported from SVN: r4548]]
parent
a6d3dcc6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/duneproject
+14
-9
14 additions, 9 deletions
bin/duneproject
with
14 additions
and
9 deletions
bin/duneproject
+
14
−
9
View file @
481e0db5
...
...
@@ -19,7 +19,11 @@ echo -----------------------------
while
[
"
$DATACORRECT
"
!=
"y"
-a
"
$DATACORRECT
"
!=
"Y"
]
;
do
PROJECT
=
""
while
[
-z
$PROJECT
]
;
do
read
-p
"New Project/Module name? "
PROJECT
read
-p
"New Project name?(a directory with this name will be created, eg: dune-grid): "
PROJECT
done
MODULE
=
""
while
[
-z
$MODULE
]
;
do
read
-p
"Name of the module? (to be used in dune.module file, eg:dune_grid (only alphanumeric character)): "
MODULE
done
VERSION
=
""
while
[
-z
$VERSION
]
;
do
...
...
@@ -36,7 +40,8 @@ while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do
read
-p
"Are these informations correct? [y/N] "
DATACORRECT
echo
echo
"Look at README and dune.module files in the project"
echo
"Look at README and dune.module files in the
\"
$PROJECT
\"
directory "
echo
"A sample code
$MODULE
.cc is generated in the
\"
$PROJECT
\"
directory"
echo
"Sometimes you may have to tweak the configure.ac a bit"
echo
"Now you can run dunecontrol script which would setup new module"
done
...
...
@@ -51,7 +56,7 @@ cat > "$PROJECT/dune.module" <<C_DELIM
##############################
#Name of the module
Module:
dune_
$PROJECT
Module:
$MODULE
#depending on
Depends:dune_common dune_grid dune_disc dune_istl
C_DELIM
...
...
@@ -63,7 +68,7 @@ cat > "$PROJECT/configure.ac" <<C_DELIM
AC_PREREQ(2.50)
AC_INIT(
$PROJECT
,
$VERSION
,
$MAINTAINER
)
AM_INIT_AUTOMAKE(
$PROJECT
,
$VERSION
,
$MAINTAINER
)
AC_CONFIG_SRCDIR([
$
PROJECT
.cc])
AC_CONFIG_SRCDIR([
$
MODULE
.cc])
AM_CONFIG_HEADER([config.h])
...
...
@@ -293,12 +298,12 @@ cat> "$PROJECT/Makefile.am" << M_DELIM
#LDADD =
\$
(UG_LDFLAGS)
\$
(AMIRAMESH_LDFLAGS)
\$
(UG_LIBS)
\$
(AMIRAMESH_LIBS)
#AM_CPPFLAGS =
\$
(UG_CPPFLAGS)
\$
(AMIRAMESH_CPPFLAGS)
noinst_PROGRAMS =
${
PROJECT
}
noinst_PROGRAMS =
${
MODULE
}
${
PROJECT
}
_SOURCES =
${
PROJECT
}
.cc
${
MODULE
}
_SOURCES =
${
MODULE
}
.cc
${
PROJECT
}
_CXXFLAGS =
\$
(MPI_CPPFLAGS)
\$
(UG_CPPFLAGS)
\$
(AMIRAMESH_CPPFLAGS)
\$
(ALBERTA_CPPFLAGS) -DWITH_INDEX_SETS
${
PROJECT
}
_LDADD =
\$
(MPI_LDFLAGS)
\$
(ALBERTA_LDFLAGS)
\$
(ALBERTA_LIBS)
\$
(AMIRAMESH_LDFLAGS)
\$
(AMIRAMESH_LIBS)
\$
(UG_LDFLAGS)
\$
(UG_LIBS)
\$
(MPI_LDFLAGS)
\$
(DUNE_LDFLAGS)
\$
(DUNE_LIBS)
${
MODULE
}
_CXXFLAGS =
\$
(MPI_CPPFLAGS)
\$
(UG_CPPFLAGS)
\$
(AMIRAMESH_CPPFLAGS)
\$
(ALBERTA_CPPFLAGS) -DWITH_INDEX_SETS
${
MODULE
}
_LDADD =
\$
(MPI_LDFLAGS)
\$
(ALBERTA_LDFLAGS)
\$
(ALBERTA_LIBS)
\$
(AMIRAMESH_LDFLAGS)
\$
(AMIRAMESH_LIBS)
\$
(UG_LDFLAGS)
\$
(UG_LIBS)
\$
(MPI_LDFLAGS)
\$
(DUNE_LDFLAGS)
\$
(DUNE_LIBS)
# don't follow the full GNU-standard
# we need automake 1.5
...
...
@@ -308,7 +313,7 @@ DISTCHECK_CONFIGURE_FLAGS = --with-dune=\$(DUNEROOT) CXX="\$(CXX)" CC="\$(CC)"
M_DELIM
################## PROJECT.CC ##################
cat
>
"
$PROJECT
/
$
PROJECT
.cc"
<<
CC_DELIM
cat
>
"
$PROJECT
/
$
MODULE
.cc"
<<
CC_DELIM
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment