bootstrap-bash.sh (449B)
- #!/bin/sh
- set -ex
- die() {
- echo "die: $@"
- exit 1
- }
- # Also works with bmake, doesn't works with pdpmake
- command -v make || die "Run /bootstrap-make.sh"
- export MAKE="make"
- gzip -d -k /bash-5.1.tar.gz
- tar xof /bash-5.1.tar
- cd bash-5.1
- export LD="tcc"
- ./configure --prefix=/usr --disable-nls --without-bash-malloc --disable-profiling
- ${MAKE} clean
- ${MAKE} SIZE=true
- ${MAKE} install MAKEINFO=true INSTALL=install
- cd ..
- rm -r bash-5.1 /bash-5.1.tar