Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs-utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ogs
OpenGeoSys Tools
ogs-utils
Commits
2cc3dcc9
Commit
2cc3dcc9
authored
7 years ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
added build info script
parent
6dbd3c0e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dev/build-info/README.md
+5
-0
5 additions, 0 deletions
dev/build-info/README.md
dev/build-info/ogs6-build-info
+50
-0
50 additions, 0 deletions
dev/build-info/ogs6-build-info
with
55 additions
and
0 deletions
dev/build-info/README.md
0 → 100644
+
5
−
0
View file @
2cc3dcc9
# Script providing some info about a specific OGS build
The script has to be run from an OGS build directory, i.e., where the
`CMakeCache.txt`
file is. It works on Linux/Unix only.
This diff is collapsed.
Click to expand it.
dev/build-info/ogs6-build-info
0 → 100755
+
50
−
0
View file @
2cc3dcc9
#!/bin/sh
if
[
!
-f
"CMakeCache.txt"
]
;
then
echo
"Error: you are not in a build directory. Aborting."
>
&2
exit
1
fi
echo
"== info from CMakeCache.txt =="
(
grep
-E
-f
- CMakeCache.txt |
sort
)
<<
EOF
^CMAKE_BUILD_TYPE:
^CMAKE_CXX_COMPILER:
^OGS_EIGEN_DYNAMIC_SHAPE_MATRICES:
^OGS_CPU_ARCHITECTURE:
^(OGS|CMAKE)[^:]*_CXX_FLAGS[^-:]*:
^[^:]*EIGEN[^-:]*:
^FIND_PACKAGE_MESSAGE_DETAILS_Eigen3:
EOF
echo
echo
"== ogs info =="
if
[
-x
bin/ogs
]
;
then
cat
<<
"
EOF
"
$
bin/ogs --version
EOF
bin/ogs
--version
else
echo
"WARNING: bin/ogs is not executable or does not exist."
fi
echo
"== compiler info =="
compiler
=
"
`
sed
-ne
's/^CMAKE_CXX_COMPILER:STRING=\(.*\)$/\1/p'
CMakeCache.txt
`
"
arch
=
"
`
sed
-ne
's/^OGS_CPU_ARCHITECTURE:STRING=\(.*\)$/\1/p'
CMakeCache.txt
`
"
cat
<<
EOF
$
LANG=C "
$compiler
" "-march=
$arch
" -E -v - </dev/null 2>&1
EOF
LANG
=
C
"
$compiler
"
"-march=
$arch
"
-E
-v
- </dev/null 2>&1
echo
echo
"== last ten git commits =="
srcdir
=
"
`
sed
-ne
's/^CMAKE_HOME_DIRECTORY:INTERNAL=\(.*\)$/\1/p'
CMakeCache.txt
`
"
cat
<<
"
EOF
"
$
git -C "
$srcdir
" log --oneline --decorate -n 10
EOF
git
-C
"
$srcdir
"
log
--oneline
--decorate
-n
10
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