diff options
author | Kim Kibum <kb0929.kim@samsung.com> | 2012-05-21 18:00:32 +0900 |
---|---|---|
committer | Kim Kibum <kb0929.kim@samsung.com> | 2012-05-21 18:00:32 +0900 |
commit | c23a416204d70b546102ad9ca5149c73ba066698 (patch) | |
tree | 3503f515050b93fb61100fb377af96cab36c85e9 /Makefile | |
parent | 8541e5ef321b296e3a8ff9a4de74b3c7d7e421a2 (diff) | |
download | package-groups-c23a416204d70b546102ad9ca5149c73ba066698.tar.gz package-groups-c23a416204d70b546102ad9ca5149c73ba066698.tar.bz2 package-groups-c23a416204d70b546102ad9ca5149c73ba066698.zip |
Upload Tizen:Main source
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..3a7e55a --- /dev/null +++ b/Makefile @@ -0,0 +1,51 @@ +# ex: set tabstop=4 noexpandtab: +VERSION = $(shell cat VERSION) +NAME=package-groups +TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/") +DESTDIR= +ARCH=i586 + +ifeq ($(VERSION), $(TAGVER)) + TAG = $(TAGVER) +else + TAG = "HEAD" +endif + +all: + python scripts/merge-patterns.py -a ${ARCH} + xsltproc xsl/comps.xsl patterns.xml > group.xml + +meta: + python scripts/merge-patterns.py -a ${ARCH} -s + +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 -a $(VERSION) -m "$(VERSION)" + git push --tags + +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-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 *.xml |