]> Dogcows Code - chaz/tar/commitdiff
Determine path to the tar executable.
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 4 Feb 2005 00:04:55 +0000 (00:04 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 4 Feb 2005 00:04:55 +0000 (00:04 +0000)
tests/star/quicktest.sh

index aba2f965731c7a2094d565f4de58c678010892d6..9c192060508222818a5763a306fc125bf119e628 100755 (executable)
@@ -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
 # 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() {
This page took 0.027643 seconds and 4 git commands to generate.