d2/ci/release/template
2022-12-06 01:33:22 -08:00
..
man pr292: Review fixes 2022-12-01 09:24:50 -08:00
scripts deps: update 2022-12-06 01:33:22 -08:00
LICENSE.txt ci/release: Checkpoint 2022-11-13 22:49:45 -08:00
Makefile install.sh: Improve default $PREFIX behaviour 2022-12-05 22:15:58 -08:00
README.md.sh install.sh: Improve default $PREFIX behaviour 2022-12-05 22:15:58 -08:00

#!/bin/sh
set -eu

cat <<EOF
# d2

For docs, more installation options and the source code see https://oss.terrastruct.com/d2

version: $VERSION

## Install

\`\`\`sh
make install DRY_RUN=1
# If it looks right, run:
# make install
\`\`\`

Pass \`PREFIX=somepath\` to change the installation prefix from the default which is
\`/usr/local\` or \`~/.local\` if \`/usr/local\` is not writable with the current user.

## Uninstall

\`\`\`sh
make uninstall DRY_RUN=1
# If it looks right, run:
# make uninstall
\`\`\`
EOF