Skip to content
Snippets Groups Projects
Commit bb768775 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #7336: Allow gen_LofarPackageList_cmake.sh to be run from any checkout,...

Task #7336: Allow gen_LofarPackageList_cmake.sh to be run from any checkout, not just those named LOFAR
parent bb66ca6e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment