Commit 5cddc5ad authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

Makefile.packages: report repository in README.system

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: 5408
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent d097a288
......@@ -226,6 +226,32 @@ THEPACKAGETARGETS=$(filter-out -,$(PACKAGETARGETS))
packageclean:
/bin/rm -rfv $(TMPPATH)
#======================================================================
# export targets
# --------------
#
# The rules in this section are used to actually export the snapshot from the
# subversion repository. The target is designed to handle a list of source
# directory and destination directory pairs.
#
# list of export targets (i.e. modules to be exported from the repository)
LIBEXPORT=$(foreach lib,$(THEPACKAGELIBS),trunk/src/libs/$(lib):contrib/$(lib))
EXPORTLIST=$(subst :,.EXPORTTO.,$(LIBEXPORT) $(PACKAGEEXPORT))
# list of exported SVN directories
EXPORTSVNLIST=$(foreach exp,$(EXPORTLIST),$(word 1,$(subst .EXPORTTO., ,$(exp))))
# control target to printout the assembled list
.PHONY: printexport
printexport:
echo $(EXPORTLIST)
# rule to actually export the targets in the list
.PHONY: $(EXPORTLIST)
$(EXPORTLIST):
mkdir -pv $(dir $(TMPPATH)/$(word 2,$(subst .EXPORTTO., ,$@)))
svn export $(SVNTF)/$(word 1,$(subst .EXPORTTO., ,$@)) \
$(TMPPATH)/$(word 2,$(subst .EXPORTTO., ,$@))
#======================================================================
# provide information files
# -------------------------
......@@ -282,35 +308,15 @@ $(TMPPATH)/README.system:
(echo -n "$(CXX): "; $(CXX) --version) 2>&1 | head -1 >> $@
(echo -n "$(CPP): "; $(CPP) --version) 2>&1 | head -1 >> $@
(echo -n "$(FC): "; $(FC) --version) 2>&1 | head -1 >> $@
echo -e "\nThe snapshot was taken from:" >> $@
svn info $(SVNTF) >> $@
echo -e "\nThe snapshot contains code from the following repository directories:" >> $@
echo $(EXPORTSVNLIST) | fold -w 70 -s | sed -e "s/^/ /" >> $@
# list of all README files and shell scripts together with locally created
# files in the root directory of the snapshot tree
INFOFILES=$(INFOFILESFROMSVN) README.system
#======================================================================
# export targets
# --------------
#
# The rules in this section are used to actually export the snapshot from the
# subversion repository. The target is designed to handle a list of source
# directory and destination directory pairs.
#
# list of export targets (i.e. modules to be exported from the repository)
LIBEXPORT=$(foreach lib,$(THEPACKAGELIBS),trunk/src/libs/$(lib):contrib/$(lib))
EXPORTLIST=$(subst :,.EXPORTTO.,$(LIBEXPORT) $(PACKAGEEXPORT))
# control target to printout the assembled list
.PHONY: printexport
printexport:
echo $(EXPORTLIST)
# rule to actually export the targets in the list
.PHONY: $(EXPORTLIST)
$(EXPORTLIST):
mkdir -pv $(dir $(TMPPATH)/$(word 2,$(subst .EXPORTTO., ,$@)))
svn export $(SVNTF)/$(word 1,$(subst .EXPORTTO., ,$@)) \
$(TMPPATH)/$(word 2,$(subst .EXPORTTO., ,$@))
#======================================================================
# in this section the actual installation is perpared and carried out
# -------------------------------------------------------------------
......
Markdown is supported
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