Tweak the image name
[profile/ivi/image-configurations-panda.git] / Makefile
1 VERSION = $(shell cat VERSION)
2 NAME=image-configurations
3 TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
4
5 ifeq ($(VERSION), $(TAGVER))
6         TAG = $(TAGVER)
7 else
8         TAG = "HEAD"
9 endif
10
11 all: 
12
13 tag:
14         git tag -a $(VERSION) -m " $(VERSION)"
15         git push --tags origin master
16
17 dist-bz2:
18         git archive --format=tar --prefix=$(NAME)-$(TAGVER)/ $(TAG) | \
19                 bzip2  > $(NAME)-$(TAGVER).tar.bz2
20
21 dist-gz:
22         git archive --format=tar --prefix=$(NAME)-$(TAGVER)/ $(TAG) | \
23                 gzip  > $(NAME)-$(TAGVER).tar.gz
24
25 changelog:
26         python ./scripts/gitlog2changelog.py
27
28 repackage: dist
29         osc branch -c Tizen:Base $(NAME)
30         rm home\:*\:branches\:Tizen:Base/$(NAME)/*tar.bz2
31         cp $(NAME)-$(VERSION).tar.bz2 home\:*\:branches\:Tizen:Base/$(NAME)
32
33 dist: dist-bz2
34
35 install: all install-data
36
37 up:
38         @python scripts/gitlog2changelog.py
39         @echo 'Current versions:'
40         @git tag -l
41         @echo 'Please specify the new version:'
42         @read NEWVER; echo $$NEWVER > VERSION; \
43         git commit -a -m "bump version to $$NEWVER"; \
44         git tag -m $$NEWVER $$NEWVER
45
46 clean: