Commit 40ef38a2 authored by thomas.forbriger's avatar thomas.forbriger

[TASK] (Makefile): remove obsolete package creation rule

package creation is obsolete since csback is publish through gitlab which
provides its own mechanism of tarball creation.
parent dfc25ff0
......@@ -111,68 +111,6 @@ installscripts: $(addprefix $(LOCBINDIR)/, $(patsubst %.py,%,$(PROGRAMS)) \
pdfdoc:
$(MAKE) -C doc pdf
# ============================================================================
# create package
# --------------
# version code based on current date
VERSIONCODE=$(shell date +'%Y%m%d')
# name of the package (including version code)
THEPACKAGE=csback$(VERSIONCODE)
# directory to place temporary files in
TMPDIR=$(HOME)/tmp
# path where the package will be created
TMPPATH=$(TMPDIR)/$(THEPACKAGE)
# tar file
PACKAGETARFILE=$(THEPACKAGE).tar
# gzipped tar file
PACKAGEGZIPFILE=$(PACKAGETARFILE).gz
# bzipped tar file
PACKAGEBZIPFILE=$(PACKAGETARFILE).bz2
# list of README files to be obtained from the subversion repository
INFOFILESFROMSVNWITHPATH=src/LICENSE.GPL
# list of files to be created
INFOFILESFROMSVN=$(notdir $(INFOFILESFROMSVNWITHPATH))
DIRFROMSVNWITHPATH=src/python/csback
# list of files to be created
DIRFROMSVN=$(notdir $(DIRFROMSVNWITHPATH))
# rule for the creation of README files from the repository
$(addprefix $(TMPPATH)/,$(INFOFILESFROMSVN)):
mkdir -pv $(dir $@)
svn export \
$(SVNTF)/trunk/$(filter %$(notdir $@),$(INFOFILESFROMSVNWITHPATH)) $@
# rule for the creation of csback files from the repository
$(addprefix $(TMPPATH)/,$(DIRFROMSVN)):
mkdir -pv $(dir $@)
svn export $(SVNTF)/trunk/$(filter %$(notdir $@),$(DIRFROMSVNWITHPATH)) $@
# create package tar archive
$(TMPDIR)/$(PACKAGETARFILE): $(TMPPATH)
/bin/rm -fv $@
cd $</..; tar cvf $@ $(notdir $<)
/bin/rm -fv $(TMPDIR)/$(PACKAGEGZIPFILE) $(TMPDIR)/$(PACKAGEBZIPFILE)
# create compressed archives
$(TMPDIR)/$(PACKAGEGZIPFILE): $(TMPDIR)/$(PACKAGETARFILE)
/bin/cp -vf $< $<.sik
gzip -vf9 $<
/bin/mv $<.sik $<
$(TMPDIR)/$(PACKAGEBZIPFILE): $(TMPDIR)/$(PACKAGETARFILE); bzip2 -vf9 $<
.PHONY: package
package:
- /bin/rm -rvf $(TMPPATH)
$(MAKE) $(addprefix $(TMPPATH)/,$(INFOFILESFROMSVN))
$(MAKE) $(addprefix $(TMPPATH)/,$(DIRFROMSVN))
$(MAKE) -C $(TMPPATH)/$(DIRFROMSVN) doc
$(MAKE) $(TMPDIR)/$(PACKAGEGZIPFILE) $(TMPDIR)/$(PACKAGEBZIPFILE)
/bin/mv -fv $(TMPDIR)/$(PACKAGEGZIPFILE) $(TMPDIR)/$(PACKAGEBZIPFILE) \
$(TF_PUBLICATIONPATH)
# ============================================================================
# tests
# --------------
......
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