|
@@ -28,13 +28,14 @@ _deploy_item() {
|
28
|
28
|
local src=$1 # source path
|
29
|
29
|
local dst=$2 # destination path
|
30
|
30
|
local mode=${3:-$MKIT_DEFAULT_MODE} # mode
|
31
|
|
- local chmod_item # each file to chmod in directory
|
|
31
|
+ local item # each in directory
|
32
|
32
|
if test -d "$src"; then
|
33
|
|
- _maybe mkdir -vp "$(dirname "$dst")"
|
34
|
|
- _maybe cp -Tvr "$src" "$dst"
|
35
|
|
- find "$dst" -type f \
|
36
|
|
- | while read -r chmod_item; do
|
37
|
|
- _maybe chmod "$mode" "$chmod_item"
|
|
33
|
+ find "$src" -type f \
|
|
34
|
+ | while read -r item; do
|
|
35
|
+ [[ $item =~ .skel$ ]] \
|
|
36
|
+ && grep -q "${item%.skel}" "$MKIT_LOCAL/built.lst" \
|
|
37
|
+ && continue
|
|
38
|
+ _deploy_item "$item" "$dst${item#$src}" "$mode"
|
38
|
39
|
done
|
39
|
40
|
else
|
40
|
41
|
_maybe install -DTvm "$mode" "$src" "$dst"
|