2016-09-02 21:28:29 -04:00
|
|
|
usage="${0} [action]
|
|
|
|
Actions:
|
|
|
|
| update | Fetches and merges upstream zim commits if possible |
|
|
|
|
| info | Prints zim and system info |
|
2016-09-05 19:34:27 -04:00
|
|
|
| issue | Create a template for reporting an issue |
|
2016-09-02 21:28:29 -04:00
|
|
|
| clean-cache | Clean the zim cache |
|
|
|
|
| build-cache | Rebuild the zim cache |
|
|
|
|
| remove | *experimental* Remove zim as best we can |
|
|
|
|
| reset | Reset zim to the latest commit |
|
|
|
|
| help | Print this usage message |"
|
|
|
|
|
|
|
|
if (( ${#} != 1 )); then
|
|
|
|
print ${usage}
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
local tools
|
|
|
|
tools="${ZIM}/tools"
|
|
|
|
|
|
|
|
case ${1} in
|
|
|
|
update) zsh ${tools}/zim_update
|
|
|
|
;;
|
|
|
|
info) zsh ${tools}/zim_info
|
|
|
|
;;
|
2016-09-05 19:34:27 -04:00
|
|
|
issue) zsh ${tools}/zim_issue
|
|
|
|
;;
|
2016-09-02 21:28:29 -04:00
|
|
|
clean-cache) zsh ${tools}/zim_clean_cache && print 'Cleaned cache'
|
|
|
|
;;
|
|
|
|
build-cache) source ${tools}/zim_build_cache && print 'Rebuilt cache'
|
|
|
|
;;
|
|
|
|
remove) zsh ${tools}/zim_remove
|
|
|
|
;;
|
|
|
|
reset) zsh ${tools}/zim_reset
|
|
|
|
;;
|
|
|
|
*) print ${usage}
|
|
|
|
;;
|
|
|
|
esac
|