Commit 7f90574d authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

provide reasonable default target locations

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 5077
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 3c067546
......@@ -19,7 +19,7 @@
all:
flist: Makefile $(wildcard Makefile.*) \
flist: Makefile $(wildcard Makefile.*) install.bashrc \
$(filter-out %.bak,$(wildcard README*))
echo $^ | tr ' ' '\n' | sort | egrep -v '.bak$$'> $@
......
......@@ -26,6 +26,8 @@
# directories; this is required since not all users
# have doxygen installed necessarily
# 05/12/2012 V1.8 added PACKAGESRCONLY switch flag
# 21/03/2013 V1.9 set reasonable local target directories for
# install.sh
#
#----------------------------------------------------------------------
# Notice
......@@ -236,7 +238,7 @@ packageclean:
# list of README files to be obtained from the subversion repository
INFOFILESFROMSVNWITHPATH=src/TFbashrc src/LICENSE.GPL src/README.dependencies \
src/pakete/README.compile src/pakete/README.1st \
scr/util/misc/checklibs.sh
scr/util/misc/checklibs.sh src/pakete/install.bashrc
# list of files to be created
INFOFILESFROMSVN=$(notdir $(INFOFILESFROMSVNWITHPATH))
......@@ -378,6 +380,8 @@ $(TMPPATH)/install.sh: $(TARGETLIST)
echo ' echo " call install.sh from within the directory in which it is located"' >> $@
echo ' exit 2' >> $@
echo 'fi' >> $@
echo -e '\n# target directories are defined in install.bashrc' >> $@
echo -e 'test -s ./install.bashrc && . ./install.bashrc || true\n' >> $@
/bin/bash -c 'if test -e $(TARGETSCRIPT); \
then \
cat $(TARGETSCRIPT) >> $@; \
......@@ -395,14 +399,7 @@ $(TMPPATH)/install.sh: $(TARGETLIST)
.PHONY: executeinstall
executeinstall: $(TMPPATH)/install.sh
ifndef PACKAGESRCONLY
/bin/bash -c 'cd $(TMPPATH); \
export SERVERLIBDIR="$(LOCLIBDIR):$(SERVERLIBDIR)"; \
export SERVERINCLUDEDIR="$(LOCINCLUDEDIR):$(SERVERINCLUDEDIR)"; \
export LOCBINDIR=$(TMPPATH)/bin; \
export LOCLIBDIR=$(TMPPATH)/lib; \
export LOCINCLUDEDIR=$(TMPPATH)/include; \
export TF_WWWBASEDIR=$(TMPPATH)/doc; \
./install.sh'
/bin/bash -c 'cd $(TMPPATH); ./install.sh'
endif
#======================================================================
......
#!/bin/sh
# this is <install.bashrc>
# ----------------------------------------------------------------------------
# $Id: $
#
# Copyright (c) 2013 by Thomas Forbriger (BFO Schiltach)
#
# environment settings for installation script
#
# This file is sourced by install.sh to set reasonable local target
# directories. The user is invited to set his own, specific target locations
# by including a copy of TFbashrc in his $HOME/.bashrc
#
# For details regarding the variables used here, see README.compile
#
# REVISIONS and CHANGES
# 21/03/2013 V1.0 Thomas Forbriger
#
# ============================================================================
#
# current directory:
CURRENTDIR=$(pwd)
export SERVERLIBDIR="${LOCLIBDIR}:${SERVERLIBDIR}"
export SERVERINCLUDEDIR="${LOCINCLUDEDIR}:${SERVERINCLUDEDIR}"
export LOCBINDIR=${CURRENTDIR}/bin
export LOCLIBDIR=${CURRENTDIR}/lib
export LOCINCLUDEDIR=${CURRENTDIR}/include
export TF_WWWBASEDIR=${CURRENTDIR}/doc
# ----- END OF install.bashrc -----
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment