Menu

[r3]: / MainTest / bin / Jlib.sh  Maximize  Restore  History

Download this file

39 lines (28 with data), 403 Bytes

 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
#!/bin/ksh -u
##
## load library
##
. Jinit.sh
##
## test
##
ME=${0##*/}
(( $# < 1 )) && Error "usage: $ME [EXEC]"
##
## main
##
for X in $@
do
print "$ME: $X"
X=$(which $X)
for F in $( ldd $X | awk '/=>/ { print $3 ; }' )
do
[[ $F == *tcl* ]] && continue
D=${F%/*}
TD=$CHROOT/$D
TF=$CHROOT/$F
[[ ! -d $TD ]] && mkdir -p $TD
[[ -f $TF ]] && continue
Cp -pr $F $TF
done
done
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.