123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #! /bin/sh
- am_create_testdir=empty
- . test-init.sh
- cp "$am_docdir"/amhello-1.0.tar.gz . \
- || fatal_ "cannot get amhello tarball"
- gzip -dc amhello-1.0.tar.gz | tar xf -
- cd amhello-1.0
- ./configure --prefix /usr
- $MAKE
- $MAKE DESTDIR="$(pwd)/inst" install
- cd inst
- find . -type f -print > ../files.lst
- tar cvf amhello-1.0-i686.tar.gz $(cat ../files.lst) > tar.got 2>&1
- EXEEXT=$(sed -n -e 's/^EXEEXT *= *//p' < ../Makefile)
- if tar --version </dev/null | grep GNU; then
- LC_ALL=C sort tar.got > t
- mv -f t tar.got
- diff - tar.got <<END
- ./usr/bin/hello$EXEEXT
- ./usr/share/doc/amhello/README
- END
- else
- : Be laxer with other tar implementations, to avoid spurious failures.
- $EGREP '(^| )(\./)?usr/bin/hello'$EXEEXT'( |$)' tar.got
- $EGREP '(^| )(\./)?usr/share/doc/amhello/README( |$)' tar.got
- fi
- :
|