Skip to content

Commit b246571

Browse files
committed
support system without make
Signed-off-by: Tin Lai <[email protected]>
1 parent e3bf4c5 commit b246571

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

bootstrap/install.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,17 @@ esac
6464

6565
# self-linking
6666
(
67-
cd "$SHSH_ROOT" && make self-linking
67+
cd "$SHSH_ROOT"
68+
if command -v make >/dev/null 2>&1; then
69+
# use built-in make command
70+
make self-linking
71+
else
72+
# mamually link
73+
ln -srf "bin/shsh" "$SHSH_ROOT/cellar/bin/shsh"
74+
ln -srf completions/shsh.bash $SHSH_ROOT/cellar/completions/bash/shsh.bash
75+
ln -srf completions/shsh.fish $SHSH_ROOT/cellar/completions/fish/shsh.fish
76+
ln -srf completions/shsh.zsh $SHSH_ROOT/cellar/completions/zsh/compctl/shsh.zsh
77+
fi
6878
)
6979

7080
# restart shell

0 commit comments

Comments
 (0)