summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9c8caf74cf0039bf521f31dd4de562b93291ef71 (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
VERSION = $(shell cat VERSION)
NAME=image-configurations
TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")

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

all: 

tag:
	git tag -a $(VERSION) -m " $(VERSION)"
	git push --tags origin master

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

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

changelog:
	python ./scripts/gitlog2changelog.py

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

dist: dist-bz2

install: all install-data

up:
	@python scripts/gitlog2changelog.py
	@echo 'Current versions:'
	@git tag -l
	@echo 'Please specify the new version:'
	@read NEWVER; echo $$NEWVER > VERSION; \
	git commit -a -m "bump version to $$NEWVER"; \
	git tag -m $$NEWVER $$NEWVER

clean: