From bb768775d85862cf32c74a0f0cde034d2fca40dc Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 27 Jan 2015 14:42:44 +0000 Subject: [PATCH] Task #7336: Allow gen_LofarPackageList_cmake.sh to be run from any checkout, not just those named LOFAR --- CMake/gen_LofarPackageList_cmake.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMake/gen_LofarPackageList_cmake.sh b/CMake/gen_LofarPackageList_cmake.sh index 9636ef36def..0a50e8cbf15 100755 --- a/CMake/gen_LofarPackageList_cmake.sh +++ b/CMake/gen_LofarPackageList_cmake.sh @@ -28,13 +28,13 @@ # Get the LOFAR source directory root script_dir=$(cd $(dirname $0) && pwd) -lofar_root=$(echo $script_dir | sed -e "s|\(.*/LOFAR\)/.*|\1|") +lofar_root=$script_dir/.. # Just a safety net; this script must be inside the LOFAR tree. -if test "$script_dir" = "$lofar_root"; then - echo "ERROR: $(basename $0) MUST be inside the LOFAR source tree!" - exit 1 -fi +#if test "$script_dir" = "$lofar_root"; then +# echo "ERROR: $(basename $0) MUST be inside the LOFAR source tree!" +# exit 1 +#fi # Open the output file exec 3> $script_dir/LofarPackageList.cmake -- GitLab