2022-11-11 09:17:06 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
|
# d2
|
|
|
|
|
|
2022-11-12 22:19:09 +00:00
|
|
|
For docs, more installation options and the source code see https://oss.terrastruct.com/d2
|
|
|
|
|
|
2022-11-11 09:17:06 +00:00
|
|
|
version: $VERSION
|
|
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
2022-11-12 22:19:09 +00:00
|
|
|
\`\`\`sh
|
2022-11-14 13:37:11 +00:00
|
|
|
make install DRY_RUN=1
|
2022-11-12 22:19:09 +00:00
|
|
|
# If it looks right, run:
|
2022-12-06 05:51:46 +00:00
|
|
|
# make install
|
2022-11-12 22:19:09 +00:00
|
|
|
\`\`\`
|
|
|
|
|
|
2022-12-06 05:51:46 +00:00
|
|
|
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.
|
2022-11-14 13:37:11 +00:00
|
|
|
|
2022-11-12 22:19:09 +00:00
|
|
|
## Uninstall
|
|
|
|
|
|
|
|
|
|
\`\`\`sh
|
2022-11-14 13:37:11 +00:00
|
|
|
make uninstall DRY_RUN=1
|
2022-11-12 22:19:09 +00:00
|
|
|
# If it looks right, run:
|
2022-12-06 05:51:46 +00:00
|
|
|
# make uninstall
|
2022-11-12 22:19:09 +00:00
|
|
|
\`\`\`
|
2022-11-11 09:17:06 +00:00
|
|
|
EOF
|