GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bash-deb-build/deb-depends-test.sh at master · BASH-Auto-Tools/bash-deb-build

Expand file tree

/

deb-depends-test.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
59 lines (50 loc) · 932 Bytes
/

deb-depends-test.sh

Copy path

File metadata and controls

executable file
·
59 lines (50 loc) · 932 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
# deb-depends-test.sh
VER="6.0"
tproc=`basename $0`
echo "$tproc version $VER"
echo ""
usage()
{
tproc=`basename $0`
echo "usage:"
echo " sh $tproc elf-component"
}
testargs()
{
if [ "x$1" = "x" -o "x$1" = "x-h" -o "x$1" = "x--help" ]
then
usage
exit 0
fi
}
testcomponent()
{
tnocomp=""
tcomp="objdump"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
tcomp="dpkg"; [ $(which $tcomp) ] || tnocomp="$tnocomp $tcomp"
if [ "x$tnocomp" != "x" ]
then
echo "ERROR: Not found $tnocomp !"
echo ""
exit 1
fi
}
main()
{
telf="$1"
tlog="$telf.depends"
echo "" > "$tlog"
echo "$telf" >> "$tlog"
echo "" >> "$tlog"
objdump -x "$telf" | grep -w NEEDED | awk '{print $2}' | while read tlib
do
echo "Library: $tlib" >> "$tlog"
dpkg -S $tlib >> "$tlog"
echo "" >> "$tlog"
done
}
testargs $1
testcomponent
main $1
#end
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.