This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e -o pipefail
4
4
5
+ cd ` dirname $0 ` /..
6
+
5
7
BASE=" public/docs/ts"
6
8
LATEST=" $BASE /latest"
7
9
CACHE=" $BASE /_cache"
@@ -71,16 +73,17 @@ function cacheDiff() {
71
73
}
72
74
73
75
function usage() {
74
- echo " Usage: cache.sh [-d | -l | -r pattern]"
75
- echo " -d diff cache and latest subdirectories"
76
- echo " -l list files subject to caching"
77
- echo " -r pat refresh files in cache matching pattern"
76
+ echo " Usage: cache.sh [options]"
77
+ echo " (-ds|--diff-summary) list names of cache files that differ from ts/latest"
78
+ echo " (-d|--diff) pat diff cache and latest subdirectories"
79
+ echo " (-l|--list) list files subject to caching"
80
+ echo " (-r|--refresh) pat refresh files in cache matching pattern"
78
81
}
79
82
80
83
case " $1 " in
81
- (-r|--refresh) shift ; cacheRefresh $@ ;;
82
84
(-ds|--diff-summary) shift ; cacheDiffSummary $@ ;;
83
85
(-d|--diff) shift ; cacheDiff $@ ;;
84
- (-l) shift ; printf " $FILES \n\n" ;;
86
+ (-l|--list) shift ; printf " $FILES \n\n" ;;
87
+ (-r|--refresh) shift ; cacheRefresh $@ ;;
85
88
(* ) usage;
86
89
esac
You can’t perform that action at this time.
0 commit comments