Commit 1978ad78 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

proceed with package creation Makefile

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: 3687
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent e3a4bda7
......@@ -30,8 +30,10 @@
# ============================================================================
#
ifndef CHECKVARS
ifndef CHECKVAR
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
endif
ifndef CHECKVARS
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
endif
......@@ -43,17 +45,28 @@ endif
# TF_PUBLICATIONPATH: path to drop packages
# PACKAGETARGETS: targets to build with packaged Makefile
# PACKAGEEXPORT: repository paths to export to src directory
#
$(call CHECKVARS,PACKAGE SVNTF TF_PUBLICATIONPATH)
$(call CHECKVARS,PACKAGECONTENTS PACKAGETARGETS PACKAGEEXPORT)
#----------------------------------------------------------------------
# basic preparation
#
# version code based on current date
VERSIONCODE=$(shell date +'%Y%m%d')
# name of the package (including version code)
THEPACKAGE=$(PACKAGE)$(VERSIONCODE)
# path where the package will be created
TMPPATH=$(HOME)/tmp/$(PACKAGE)
# tar file
PACKAGETARFILE=$(THEPACKAGE).tar
# gzipped tar file
PACKAGEGZIPFILE=$(PACKAGETARFILE).gz
# bzipped tar file
PACKAGEBZIPFILE=$(PACKAGETARFILE).bz2
# create package files
package: $(TF_PUBLICATIONPATH)/$(PACKAGEBZIPFILE) \
$(TF_PUBLICATIONPATH)/$(PACKAGEGZIPFILE)
rm -fv $(PACKAGETARFILE)
......@@ -73,8 +86,10 @@ TMPPATHCONTENTS=README.compile README.1st TFbashrc LICENSE.GPL \
ifdef THEFROZZLEHASDONEITALREADY
package:
/bin/rm -rfv $(TMPPATH); mkdir -pv $(TMPPATH)
cd $(TMPPATH)/..; cvs -d $(CVSSERVER) \
/bin/rm -rfv $(TMPPATH)
mkdir -pv $(TMPPATH)
mkdir -pv $(TMPPATH)/src
cd $(TMPPATH); mkdi/..; cvs -d $(CVSSERVER) \
export -r HEAD -d $(PACKAGE) libaff
cd $(TMPPATH)/..; cvs export -r HEAD -d $(PACKAGE) thof/src/LICENSE.GPL
cd $(TMPPATH)/..; cvs export -r HEAD \
......
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