Menu

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

Download this file

33 lines (24 with data), 356 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
#!/bin/ksh -u
##
## load library
##
. Jinit.sh
##
## test
##
ME=${0##*/}
(( $# < 2 )) && Error "usage: $ME [DIR] [HEADER...]"
##
## main
##
DIR=$1 ; shift
D=$CHROOT/$DIR
[[ ! -d $D ]] && mkdir -p $D
for F in $@
do
print "$ME: $F"
FI=$DIR/$F
[[ ! -f $FI ]] && Error "file \"$FI\" not available"
[[ -f $D/$F ]] && continue
cp -pr $FI $D/$F
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.