Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Open Source Software
Zipr Toolchain
Commits
160a7ea7
Commit
160a7ea7
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
support to detect 32 v 64bit and get the right library
Former-commit-id: a9e86d7ab4d30f43e54d82081449fff2130ff785
parent
7453780c
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
plugins_install/diehard.sh
+16
-6
16 additions, 6 deletions
plugins_install/diehard.sh
with
16 additions
and
6 deletions
plugins_install/diehard.sh
+
16
−
6
View file @
160a7ea7
#!/bin/bash
if
[
!
-f
$CFAR_HOME
/DieHard/src/libdiehard.so
]
;
then
if
[
!
-f
$CFAR_HOME
/DieHard/src/libdiehard
-4k-x64
.so
]
;
then
echo
"ERROR: DieHard library not built/found"
|
tee
warning.txt
exit
1
fi
...
...
@@ -23,22 +23,32 @@ case $key in
esac
done
file a.ncexe |grep
-q
"64-bit"
if
(
file a.ncexe |grep
-q
"64-bit"
)
;
then
echo
"Detected 64-bit binary"
ext
=
x64
else
echo
"Detected 32-bit binary"
ext
=
x32
fi
if
[
-z
"
$seq
"
]
;
then
cp
$CFAR_HOME
/DieHard/src/libdiehard.so libheaprand.so
cp
$CFAR_HOME
/DieHard/src/libdiehard
-32k-
$ext
.so libheaprand.so
else
if
[
!
-f
$CFAR_HOME
/DieHard/src/libdiehard-4k.so
]
;
then
if
[
!
-f
$CFAR_HOME
/DieHard/src/libdiehard-4k
-
$ext
.so
]
;
then
echo
"ERROR: DieHard library 4k not built/found"
|
tee
warning.txt
exit
1
fi
if
[
!
-f
$CFAR_HOME
/DieHard/src/libdiehard-32k.so
]
;
then
if
[
!
-f
$CFAR_HOME
/DieHard/src/libdiehard-32k
-
$ext
.so
]
;
then
echo
"ERROR: DieHard library 32k not built/found"
|
tee
warning.txt
exit
1
fi
if
[
$(
expr
${
seq
}
% 2
)
=
0
]
;
then
cp
$CFAR_HOME
/DieHard/src/libdiehard-32k.so libheaprand.so
cp
$CFAR_HOME
/DieHard/src/libdiehard-32k
-
$ext
.so libheaprand.so
else
cp
$CFAR_HOME
/DieHard/src/libdiehard-4k.so libheaprand.so
cp
$CFAR_HOME
/DieHard/src/libdiehard-4k
-
$ext
.so libheaprand.so
fi
fi
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