summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-18 06:38:31 +0000
committerJim Meyering <jim@meyering.net>2003-10-18 06:38:31 +0000
commit569c3b26a6483ad901b03e711978333947d5571f (patch)
tree146bd5b827a82d6bfe996b2862673591fbfd3f20 /tests
parent704e1e5554d0d7965bacbe49d34439778305f246 (diff)
downloadcoreutils-569c3b26a6483ad901b03e711978333947d5571f.tar.xz
Get $srcdir from first parameter instead of hardcoding it.
(main): Update usage.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mk-script4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mk-script b/tests/mk-script
index a004bb1cb..aef808a1c 100755
--- a/tests/mk-script
+++ b/tests/mk-script
@@ -15,7 +15,7 @@ use POSIX qw (assert);
BEGIN { push @INC, '.' if '.' ne '.'; }
use Test;
-my $srcdir = '.';
+my $srcdir = shift;
sub validate
{
@@ -170,7 +170,7 @@ sub wrap
{
$| = 1;
- die "Usage: $0: program-name\n" if @ARGV != 1;
+ die "Usage: $0: srcdir program-name\n" if @ARGV != 1;
my $xx = $ARGV[0];