Skip to content

Commit

Permalink
add archive makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed Sep 27, 2013
1 parent b53b034 commit c423b43
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@

# CernVM is defined by platform, SL upstream, edition, version
# Result is a Meta RPM and its dependencies mirrored in the cernvm-os repository

include config.mk

PLATFORM = x86_64
#COMPAT_PLATFORM not used currently
COMPAT_PLATFORM = i686
SL_UPSTREAM = 6
EDITION = system
VERSION = 2.9.163

TOP = $(shell pwd)
STRONG_VERSION=$(EDITION)-$(VERSION)-$(PLATFORM)
Expand Down Expand Up @@ -39,7 +38,7 @@ $(META_RPM_DIR)/repodata/repomd.xml: $(wildcard $(META_RPM_DIR)/*.rpm)
# CernVM Edition Definitions #
################################

artifacts/packages-basic-$(VERSION)-$(PLATFORM): $(wildcard groups/bits/*) _TESTGROUP _TESTEXTRA
artifacts/packages-basic-$(VERSION)-$(PLATFORM): $(wildcard groups/bits/*) _TESTGROUP _TESTEXTRA release
cat groups/bits/minimal groups/bits/base groups/bits/misc groups/bits/perl groups/bits/python \
groups/bits/batch groups/bits/head groups/bits/copilot groups/bits/hep-oslibs \
groups/bits/cernvm | sort -u > artifacts/packages-basic-$(VERSION)-$(PLATFORM)
Expand Down
9 changes: 9 additions & 0 deletions archive.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

include config.mk

all: archive/artifacts-$(VERSION).tar.gz

archive/artifacts-$(VERSION).tar.gz:
cd artifacts && gtar -cvz --transform 's,^\.,artifacts-$(VERSION),' --show-transformed-names -f ../archive/artifacts-$(VERSION).tar.gz \
`find . -maxdepth 1 -type f -name '*$(VERSION)*' ! -name '*\.rpm'`

1 change: 1 addition & 0 deletions buildno
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
164
1 change: 1 addition & 0 deletions config.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION = $(shell cat release).$(shell cat buildno)
1 change: 1 addition & 0 deletions release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.9

0 comments on commit c423b43

Please sign in to comment.