Commit 1872f5d0 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

moved static content to script template

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: 5288
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent f0a7b16d
......@@ -28,6 +28,7 @@
# 05/12/2012 V1.8 added PACKAGESRCONLY switch flag
# 21/03/2013 V1.9 set reasonable local target directories for
# install.sh
# 23/10/2013 V1.10 moved static content of install.sh to script template
#
#----------------------------------------------------------------------
# Notice
......@@ -371,16 +372,6 @@ $(TMPPATH)/install.sh: $(TMPPATH)/template_install.sh $(TARGETLIST)
/bin/mv $< $@
echo '# install script of package $(THEPACKAGE)' >> $@
echo '# ============================================================================' >> $@
echo 'cd $$(dirname $$0)' >> $@
echo 'SRCROOT=$$(pwd)' >> $@
echo 'if test \! -x $$SRCROOT/install.sh' >> $@
echo 'then' >> $@
echo ' echo "ERROR: $$SRCROOT/install.sh is missing"' >> $@
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) >> $@; \
......
......@@ -12,7 +12,19 @@
#
# ============================================================================
# the following part of install.sh is independent of the actual package
# ---------------------------------------------------------------------
#
cd $(dirname $0)
SRCROOT=$(pwd)
if test ! -x $SRCROOT/install.sh
then
echo "ERROR: $SRCROOT/install.sh is missing"
echo " call install.sh from within the directory in which it is located"
exit 2
fi
# target directories are defined in install.bashrc
test -s ./install.bashrc && . ./install.bashrc || true
# ============================================================================
# package specific contents are added below this line
# ---------------------------------------------------
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