Files
axe-os/build/bash/build.bash
2026-02-08 11:43:43 +02:00

49 lines
616 B
Bash

. "$PROJECTDIR/build/bash/package.env"
fetch $BASH_URL
cd "$SOURCES" && tar xf bash-$BASH_VERSION.tar.gz && cd bash-$BASH_VERSION
bootstrap() {
echo bootstrap
}
toolchain() {
./configure \
--prefix=/usr \
--build=$(sh support/config.guess) \
--host=$TARGET \
--without-bash-malloc > /dev/null
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
ln -sv bash "$SYSROOT/bin/sh"
}
setup() {
echo setup
}
final() {
echo final
}
case $1 in
bootstrap)
bootstrap
;;
toolchain)
toolchain
;;
setup)
setup
;;
final)
final
;;
esac
rm -rf "$SOURCES/bash-$BASH_VERSION"