Skip to content

Commit

Permalink
setup-util-bash: cross-os compat building
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Feb 4, 2025
1 parent 3ca2143 commit 3737476
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions commands/setup-util-bash
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,20 @@ function setup_util_bash() (
function do_install {
# dependencies
setup-util-devel --quiet
# setup-util --cli='yacc' APT='byacc' BREW='byacc' <-- only needed for some old bash versions, which we don't care about here
source "$DOROTHY/sources/environment.sh"

# build
./configure
# install for all users
# support unbounded CPPFLAGS, as if its result from [setup-environment-commands] is empty, as it will be on ubuntu, then it will remain unbounded
./configure CFLAGS='-DSSH_SOURCE_BASHRC' CPPFLAGS="-w -Wno-error=all ${CPPFLAGS-}"
make install
}
function do_uninstall {
# dependencies
setup-util-devel --quiet
source "$DOROTHY/sources/environment.sh"

# build
# uninstall for all users
./configure
make uninstall
}
Expand Down

0 comments on commit 3737476

Please sign in to comment.