IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
Air Shower Physics
corsika
Commits
6b06b403
Commit
6b06b403
authored
2 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
make strip_flukahp.sh work with older versions of ar
parent
3a4cbccf
No related branches found
No related tags found
1 merge request
!468
Resolve "Add FLUKA"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/fluka/strip_flukahp.sh
+6
-3
6 additions, 3 deletions
src/modules/fluka/strip_flukahp.sh
with
6 additions
and
3 deletions
src/modules/fluka/strip_flukahp.sh
+
6
−
3
View file @
6b06b403
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# This script strips off flrndm() from the libflukahp.a so that we can provide our own
# This script strips off flrndm() from the libflukahp.a so that we can provide our own
# implementation.
# implementation.
flukalibOrig
=
"
$1
"
flukalibOrig
=
`
realpath
$1
`
target
=
"
$2
"
target
=
"
$2
"
if
[
!
-r
"
$flukalibOrig
"
]
;
then
if
[
!
-r
"
$flukalibOrig
"
]
;
then
...
@@ -20,9 +20,12 @@ if [ ! -r "$flukalibOrig" ]; then
...
@@ -20,9 +20,12 @@ if [ ! -r "$flukalibOrig" ]; then
fi
fi
tmpdir
=
`
mktemp
-d
fluka_objectsXXXXXX
`
tmpdir
=
`
mktemp
-d
fluka_objectsXXXXXX
`
workdir
=
`
pwd
`
echo
"extracting objects from
$1
into
`
realpath
$tmpdir
`
..."
echo
"extracting objects from
$flukalibOrig
into
`
realpath
$tmpdir
`
..."
ar
--output
"
$tmpdir
"
x
"
$flukalibOrig
"
cd
"
$tmpdir
"
ar x
"
$flukalibOrig
"
cd
"
$workdir
"
rm
"
$tmpdir
/flrndm.o"
rm
"
$tmpdir
/flrndm.o"
[
-f
"libflukahp-norndm.a"
]
&&
rm
"libflukahp-norndm.a"
[
-f
"libflukahp-norndm.a"
]
&&
rm
"libflukahp-norndm.a"
...
...
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