From 2d55b9b6f1eb9a2899a6a9385e78b79d4f9699e1 Mon Sep 17 00:00:00 2001 From: Marcel Loose <loose@astron.nl> Date: Wed, 15 Nov 2006 13:25:27 +0000 Subject: [PATCH] BugID: 835 Only source lofarinit.sh if it is readable. Make file/directory containing input data writable (needed for make distcheck) --- autoconf_share/runtest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoconf_share/runtest.sh b/autoconf_share/runtest.sh index 76716de96fb..7ecf7609687 100755 --- a/autoconf_share/runtest.sh +++ b/autoconf_share/runtest.sh @@ -87,7 +87,9 @@ else lofarinitdir=`pwd | sed -e 's%/LOFAR/.*%/LOFAR/LCS/Tools/src%'` fi cd $lofarinitdir -. lofarinit.sh +if test -r lofarinit.sh; then + . lofarinit.sh +fi cd $curwd # Initialize AIPS++. @@ -113,6 +115,7 @@ if test -f "$srcdir/$1.in"; then fi \rm -rf $1.in_* \cp -r $srcdir/$1.in_* . > /dev/null 2>&1 +chmod -R +w $1.in_* > /dev/null 2>&1 # Make writable (for make distcheck). if test -f "$srcdir/$1.stdout"; then \rm -f $1.stdout \cp $srcdir/$1.stdout . -- GitLab