12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #! /bin/sh
- . test-init.sh
- cat > configure.ac <<END
- AC_INIT([$me], [1.0])
- AM_INIT_AUTOMAKE([tar-ustar])
- AC_CONFIG_FILES([Makefile])
- AC_OUTPUT
- END
- : > Makefile.am
- run_configure()
- {
- st=0; ./configure ${1+"$@"} >stdout || st=$?
- cat stdout || exit 1
- test $st -eq 0 || exit 1
- }
- checked ()
- {
- grep "^checking $1\.\.\. $2$" stdout
- }
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE
- mkdir bin
- cat > bin/id <<'END'
- case "$*" in
- -u) echo "${am_uid-1000}";;
- -g) echo "${am_gid-1000}";;
- *) echo "id: bad/unexpected usage" >&2; exit 1;;
- esac
- END
- chmod a+x bin/id
- PATH=$(pwd)/bin$PATH_SEPARATOR$PATH
- am_uid=16777216; export am_uid
- am_gid=1000; export am_gid
- run_configure
- checked "whether UID '$am_uid' is supported by ustar format" "no"
- checked "whether GID '1000' is supported by ustar format" "yes"
- checked "how to create a ustar tar archive" "none"
- am_uid=1000; export am_uid
- am_gid=17000000; export am_gid
- run_configure
- checked "whether UID '1000' is supported by ustar format" "yes"
- checked "whether GID '$am_gid' is supported by ustar format" "no"
- checked "how to create a ustar tar archive" "none"
- two_to_twentyone=$((32 * 32 * 32 * 32 * 2))
- am_uid=$two_to_twentyone; export am_uid
- am_gid=$two_to_twentyone; export am_gid
- run_configure
- checked "whether UID '$two_to_twentyone' is supported by ustar format" "no"
- checked "whether GID '$two_to_twentyone' is supported by ustar format" "no"
- checked "how to create a ustar tar archive" "none"
- :
|