Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gepetto Utils
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
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
Gepetto
Gepetto Utils
Commits
c529d427
Commit
c529d427
authored
6 years ago
by
François Bailly
Browse files
Options
Downloads
Patches
Plain Diff
Adding searchLib.sh, a script for sorting dependencies of librairies
parent
0cc1d60b
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
scripts/README.md
+11
-0
11 additions, 0 deletions
scripts/README.md
scripts/searchLib.sh
+24
-0
24 additions, 0 deletions
scripts/searchLib.sh
with
35 additions
and
0 deletions
scripts/README.md
+
11
−
0
View file @
c529d427
...
@@ -65,3 +65,14 @@ The first allows to check that the camera is configured correctly.
...
@@ -65,3 +65,14 @@ The first allows to check that the camera is configured correctly.
If you are not satisfied, you have to use the
[
web interface
](
http://axis-ptz1
)
.
If you are not satisfied, you have to use the
[
web interface
](
http://axis-ptz1
)
.
The second records the current view. It is meant to be run in
`eur0c:/local/axis`
The second records the current view. It is meant to be run in
`eur0c:/local/axis`
## `searchLib.sh`
```
usage: searchLib.sh my_lib version_to_avoid
This script searches all the .so files in the current directory.
The first arg is a string contained in the dependencies of the library you are looking for.
The second arg is a string contained in the dependencies that you want to reject.
The script will display the names of the .so files which meet these criteria.
```
This diff is collapsed.
Click to expand it.
scripts/searchLib.sh
0 → 100755
+
24
−
0
View file @
c529d427
#!/bin/bash
# This script searches all the .so files in the current directory.
# The first arg is a string contained in the dependencies of the library you are looking for.
# The second arg is a string contained in the dependencies that you want to reject.
# The script will display the names of the .so files which meet these criteria.
# Ex: searchLib.sh my_lib version_to_avoid
set
+e
w
=
`
find
.
-name
"*.so"
-print
`
for
v
in
$w
do
#echo $v
out_v
=
`
basename
$v
`
.txt
#echo $out_v
ldd
$v
>
/tmp/
$out_v
grep
-nH
$1
/tmp/
$out_v
|
grep
-v
$2
&> /tmp/test
if
[
-s
/tmp/test
]
then
echo
$v
fi
done
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