Skip to content
Snippets Groups Projects
Commit 73fd6866 authored by Orgis, Dr. Thomas's avatar Orgis, Dr. Thomas
Browse files

final words

parent a68ed81a
Branches
No related tags found
No related merge requests found
#!/bin/bash
# A heavily changed LOFAR build script based on the one Francesco gave me.
# I put my changes into the public domain, hoping that they are useful.
# -- Dr. Thomas Orgis <thomas.orgis@uni-hamburg.de>
# TODO:
# - some syntax cleanup, "$var" instead of $var, most of the times
# - maybe more structre to reduce the repetitive identical
# fetch/patch/build code
mandatory_vars="\
lofar_prefix Installation prefix to use. Packages are put into sub-directories of that.
casacore_version Version of CASAcore.
......@@ -647,22 +656,23 @@ echo "$(date) done with packages"
echo
echo "Installation directory contents:"
ls ${INSTALLDIR}
ls "$lofar_prefix"
# Use the same environment used to building.
print_init()
{
cat <<EOT
# LOFAR Tools built by $USER\@$(hostname) on $(date)
# LOFAR Tools built by $USER@$(hostname) on $(date)
#
# Sourcing this script shall re-create the build environment and
# add things from the LOFAR prefix to appropriate path variables.
# It does _not_ set LD_LIBRARY_PATH, as a proper build should use
# RPATH in the binaries. But there is LD_RUN_PATH / LIBRARY_PATH
# set for link-time usage. You can set LD_LIBRARY_PATH=\$LD_RUN_PATH
# as a hack if some binary fails to find its libs. But this would
# be a bug in the build script that should be fixed properly.
# It does _not_ set LD_LIBRARY_PATH (unless the build environment
# does), as a proper build should use RPATH in the binaries.
# But there is LD_RUN_PATH / LIBRARY_PATH set for link-time usage.
# You can set LD_LIBRARY_PATH=\$LD_RUN_PATH as a hack if some binary
# fails to find its libs. But this would be a bug in the build
# script that should be fixed properly.
#
# Step 1: The build config with all variables used.
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment