2018-02-22 16:27:37 +00:00
|
|
|
#!/bin/bash
|
2018-04-12 18:07:33 +00:00
|
|
|
# Description: Document conversion tool
|
2018-02-27 05:15:14 +00:00
|
|
|
set -e
|
2018-02-22 16:27:37 +00:00
|
|
|
|
2018-08-14 02:10:40 +00:00
|
|
|
case $_PLATFORM in
|
|
|
|
darwin)
|
|
|
|
_recipe brew
|
|
|
|
_brew pandoc
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
if ! dpkg -s pandoc >/dev/null 2>&1; then
|
|
|
|
__pandoc_tmp="$(mktemp)"
|
2020-07-19 06:03:06 +00:00
|
|
|
_run "Download pandoc" curl -L -o "$__pandoc_tmp" "https://github.com/jgm/pandoc/releases/download/2.10/pandoc-2.10-1-amd64.deb"
|
2018-08-14 02:10:40 +00:00
|
|
|
_run "Install pandoc" sudo dpkg -i "$__pandoc_tmp"
|
|
|
|
rm -f "$__pandoc_tmp"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|