#! /bin/sh # Test $INSTALL_LOG stuff # Note that the tests below use `ginstall', not install, because # that's the name of the binary in ../../src. if test "$VERBOSE" = yes; then set -x ginstall --version fi . $srcdir/../envvar-check pwd=`pwd` to=to INSTALL_LOG=log export INSTALL_LOG from=from expected=expected trap "cd $pwd; rm -rf $INSTALL_LOG $from $to $expected" 0 1 2 3 15 fail=0 echo foo > $from echo "install: $to" > $expected # Before 4.0q, this would mistakenly create $file, not `dest' # in no-dir1/no-dir2/. ginstall $from $to || fail=1 cmp $expected log || fail=1 exit $fail