shoestrap/recipes/no-sudo/build-fish

19 lines
465 B
Plaintext
Raw Permalink Normal View History

#! /bin/bash
log "Compiling and installing fish-shell to local prefix"
2023-02-24 22:36:47 +00:00
function main() {
local fish_shell_dir=$WORKSPACE/fish-shell
2023-02-24 22:36:47 +00:00
if [ ! -d "$fish_shell_dir" ]; then
log "Cloning fish-shell"
git clone https://github.com/fish-shell/fish-shell "$fish_shell_dir"
else
(cd "$fish_shell_dir" && git pull)
fi
2023-02-24 22:36:47 +00:00
(cd "$fish_shell_dir" && ./configure --prefix="$LOCAL_PREFIX" --disable-shared && make && make install)
}
main