Merge pull request #385 from nhooyr/windows-install-e17d
windows install e17d
This commit is contained in:
commit
0cc8b1a966
3 changed files with 17 additions and 3 deletions
|
|
@ -6,7 +6,14 @@ cd -- "$(dirname "$0")/.."
|
||||||
main() {
|
main() {
|
||||||
ensure_prefix_sh_c
|
ensure_prefix_sh_c
|
||||||
"$sh_c" mkdir -p "$PREFIX/bin"
|
"$sh_c" mkdir -p "$PREFIX/bin"
|
||||||
"$sh_c" install ./bin/d2 "$PREFIX/bin/d2"
|
|
||||||
|
ensure_os
|
||||||
|
if [ "$OS" = windows ]; then
|
||||||
|
"$sh_c" install ./bin/d2 "$PREFIX/bin/d2.exe"
|
||||||
|
else
|
||||||
|
"$sh_c" install ./bin/d2 "$PREFIX/bin/d2"
|
||||||
|
fi
|
||||||
|
|
||||||
"$sh_c" mkdir -p "$PREFIX/share/man/man1"
|
"$sh_c" mkdir -p "$PREFIX/share/man/man1"
|
||||||
"$sh_c" install ./man/d2.1 "$PREFIX/share/man/man1"
|
"$sh_c" install ./man/d2.1 "$PREFIX/share/man/man1"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,14 @@ cd -- "$(dirname "$0")/.."
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
ensure_prefix_sh_c
|
ensure_prefix_sh_c
|
||||||
"$sh_c" rm -f "$PREFIX/bin/d2"
|
|
||||||
|
ensure_os
|
||||||
|
if [ "$OS" = windows ]; then
|
||||||
|
"$sh_c" rm -f "$PREFIX/bin/d2.exe"
|
||||||
|
else
|
||||||
|
"$sh_c" rm -f "$PREFIX/bin/d2"
|
||||||
|
fi
|
||||||
|
|
||||||
"$sh_c" rm -f "$PREFIX/share/man/man1/d2.1"
|
"$sh_c" rm -f "$PREFIX/share/man/man1/d2.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
ci/sub
2
ci/sub
|
|
@ -1 +1 @@
|
||||||
Subproject commit c186afdcc1a6ef8a8f6202df2cb3fd89f104a567
|
Subproject commit 54d7f80dc41689707ab00cca52d430e898672e9f
|
||||||
Loading…
Reference in a new issue