genext2fs.sh (959B)
- #!/bin/sh
- set -ex
- die() {
- echo "die: $@"
- exit 1
- }
- cd /extras/genext2fs-*/
- # Cleaned up after ./configure --disable-libarchive CC=tcc
- cat >config.h <<EOF
- #define HAVE_DIRENT_H 1
- #define HAVE_FCNTL_H 1
- #define HAVE_GETLINE 1
- #define HAVE_GETOPT_H 1
- #define HAVE_GETOPT_LONG 1
- #define HAVE_INTTYPES_H 1
- #define HAVE_LIBGEN_H 1
- #define HAVE_LIMITS_H 1
- #define HAVE_MEMORY_H 1
- #define HAVE_SNPRINTF 1
- #define HAVE_STDDEF_H 1
- #define HAVE_STDINT_H 1
- #define HAVE_STDIO_H 1
- #define HAVE_STDLIB_H 1
- #define HAVE_STRINGS_H 1
- #define HAVE_STRING_H 1
- #define HAVE_STRTOF 1
- #define HAVE_STRUCT_STAT_ST_RDEV 1
- #define HAVE_SYS_STAT_H 1
- #define HAVE_SYS_TYPES_H 1
- #define HAVE_UNISTD_H 1
- #define HAVE_VSNPRINTF 1
- #define HAVE_WCHAR_H 1
- #define MAJOR_IN_SYSMACROS 1
- #define STDC_HEADERS 1
- /* Version number of package */
- #define VERSION "1.4.2"
- EOF
- ${CC} ${CFLAGS} -I./ -o /bin/genext2fs genext2fs.c
- # Needs md5sum
- #ln -s /bin/genext2fs ./genext2fs
- #./test.sh
- cd -