1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

Use ../envvar-check rather than open-coding the same tests.

This commit is contained in:
Jim Meyering
2001-03-17 22:15:54 +00:00
parent d6a685271c
commit 10a6b91082

View File

@@ -8,26 +8,14 @@ if test "$VERBOSE" = yes; then
ginstall --version
fi
. $srcdir/../envvar-check
pwd=`pwd`
dir=install-D$$
trap "cd $pwd; rm -rf $dir" 0 1 2 3 15
mkdir $dir
unset VERSION_CONTROL SIMPLE_BACKUP_SUFFIX
if test "${VERSION_CONTROL+set}" = set; then
echo '$0: the VERSION_CONTROL envvar is set --' \
' unset it and rerun this test' >&2
exit 1
fi
if test "${SIMPLE_BACKUP_SUFFIX+set}" = set; then
echo '$0: the SIMPLE_BACKUP_SUFFIX envvar is set --' \
' unset it and rerun this test' >&2
>&2
exit 1
fi
fail=0
cd $dir