equal
deleted
inserted
replaced
1 # Idempotent refreshable operations |
1 # Idempotent refreshable operations |
2 |
2 |
3 apply_GETOPTS='pFn' |
3 apply_GETOPTS='pFn' |
4 |
4 |
5 APPLY= |
5 APPLY= |
|
6 APPLY_FORCE= |
6 APPLY_DIFF= |
7 APPLY_DIFF= |
7 |
8 |
8 function apply_help { |
9 function apply_help { |
9 cat <<END |
10 cat <<END |
10 Apply: |
11 Apply: |
18 local opt=$1 |
19 local opt=$1 |
19 local optarg="$2" |
20 local optarg="$2" |
20 |
21 |
21 case $opt in |
22 case $opt in |
22 p) APPLY_DIFF=1 ;; |
23 p) APPLY_DIFF=1 ;; |
23 F) APPLY=1 ;; |
24 F) APPLY_FORCE=1 ;; |
24 |
25 |
25 n) |
26 n) |
26 APPLY=0 |
27 APPLY=0 |
27 APPLY_DIFF=1 |
28 APPLY_DIFF=1 |
28 ;; |
29 ;; |
52 |
53 |
53 elif [ ! -e "$out" ]; then |
54 elif [ ! -e "$out" ]; then |
54 debug " update: dest missing" |
55 debug " update: dest missing" |
55 return 2 |
56 return 2 |
56 |
57 |
57 elif [ "$APPLY" = 1 ]; then |
58 elif [ "$APPLY_FORCE" = 1 ]; then |
58 debug " update: forced" |
59 debug " update: forced" |
59 return 2 |
60 return 2 |
60 fi |
61 fi |
61 |
62 |
62 # check deps |
63 # check deps |