summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3b0729588adfd87c20febc5aa3b8c800e35feb0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# ex: set tabstop=4 noexpandtab: 
VERSION = $(shell cat VERSION)
NAME=package-groups
TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
DESTDIR=
ARCH=

ifeq ($(VERSION), $(TAGVER))
        TAG = $(TAGVER)
else
        TAG = "HEAD"
endif

all: 
	sh update.sh ${ARCH}

install:
	install -d ${DESTDIR}/usr/share/package-groups
	install -m 644 patterns.xml ${DESTDIR}/usr/share/package-groups
	install -m 644 group.xml ${DESTDIR}/usr/share/package-groups

tag:
	git tag $(VERSION)
	git push --tags

changelog:
	python ./scripts/gitlog2changelog.py

repackage: dist
	osc branch -c Trunk:Testing $(NAME)
	rm home\:*\:branches\:Trunk:Testing/$(NAME)/*tar.bz2
	cp $(NAME)-$(VERSION).tar.bz2 home\:*\:branches\:Trunk:Testing/$(NAME)

	

dist-bz2:
	git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
		bzip2  > $(NAME)-$(VERSION).tar.bz2

dist-gz:
	git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
		gzip  > $(NAME)-$(VERSION).tar.gz

dist: dist-bz2

clean:
	rm -rf patterns.xml INDEX.xml group.xml