From 1044149e3a8b4b18a9cc1f374c506e49cb7d310a Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 4 Feb 2005 00:04:55 +0000 Subject: [PATCH] Determine path to the tar executable. --- tests/star/quicktest.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/star/quicktest.sh b/tests/star/quicktest.sh index aba2f96..9c19206 100755 --- a/tests/star/quicktest.sh +++ b/tests/star/quicktest.sh @@ -1,6 +1,6 @@ #! /bin/sh # This file is part of GNU tar testsuite. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,6 +17,13 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. +PWD=`pwd` +P=`expr $0 : '\(.*\)/.*'` +DIR=`cd $P; pwd`/../../src +if [ -d $DIR ]; then + PATH=`cd $DIR;pwd`:$PATH +fi + # Usage: quicktest FILELIST ARCHIVE-NAME quicktest() { DIR=quicktest.$$ @@ -75,6 +82,7 @@ check_environ() { echo "tartest not in your path" exit 77 fi + tar --version } getargs() { -- 2.44.0