X-Git-Url: https://apps.delaporte.us/gitweb/minion.git/blobdiff_plain/05d965a0b458349e1dafa7968b636d3b22636dd6..48041d616edc20520c0807432f79e606e2850fa0:/setup-mp.sh?ds=sidebyside diff --git a/setup-mp.sh b/setup-mp.sh index b47acf5..2f6be25 100755 --- a/setup-mp.sh +++ b/setup-mp.sh @@ -1,3 +1,17 @@ -ENVS=$HOME/envs -cd $ENVS;python -m venv docs -$ENVS/docs/bin/pip install md2pdf[cli] # For PDF +#!/usr/bin/bash +INSTALL=$(find ~/Downloads/mdtohtml*.gz) +INSTALL_TO="$HOME/bin" +set -e +if [ ! -n "$INSTALL" ]; then + echo "~/Downloads is missing install file mdtohtml*.gz" + echo "Get it from https://github.com/sgaunet/mdtohtml/releases" + exit 1 +fi + +echo "Installing from $INSTALL..." +cd /tmp +tar xf $INSTALL + +mkdir -p "$INSTALL_TO" +mv mdtohtml $INSTALL_TO +