bootstrap-e2fsprogs.sh (541B)
- #!/bin/sh
- set -ex
- die() {
- echo "die: $@"
- exit 1
- }
- command -v make || die "Run /bootstrap-make.sh"
- tar xof /e2fsprogs-*.tar.gz
- cd ./e2fsprogs-*/
- # workaround bug in utils-std ln(1)
- ed lib/et/Makefile.in <<'EOF'
- /LINK_INSTALL_FLAGS
- c
- $(LN) $(LINK_INSTALL_FLAGS) et/com_err.h ./com_err.h )
- .
- p
- w
- q
- EOF
- LD=tcc ./configure --disable-nls --disable-backtrace
- # Replace __GNUC_PREREQ calls with 1
- ed lib/ext2fs/rbtree.h <<EOF
- 101
- c
- #if 1
- .
- p
- 179
- c
- #if 1
- .
- w
- q
- EOF
- make clean
- make
- make install INSTALL=install
- cd ..
- rm -fr ./e2fsprogs-*/