|
NAME = TigerOS
|
|
XML = backgrounds/desktop-backgrounds-fedora.xml
|
|
|
|
all: bootloader/fedora.icns
|
|
|
|
VERSION := $(shell awk '/Version:/ { print $$2 }' $(NAME).spec)
|
|
RELEASE := $(shell awk '/Release:/ { print $$2 }' $(NAME).spec | sed 's|%{?dist}||g')
|
|
TAG=$(NAME)-$(VERSION)-$(RELEASE)
|
|
|
|
bootloader/fedora.icns: pixmaps/fedora-logo-small.png
|
|
png2icns bootloader/fedora.icns pixmaps/fedora-logo-small.png
|
|
|
|
tag:
|
|
@git tag -a -f -m "Tag as $(TAG)" -f $(TAG)
|
|
@echo "Tagged as $(TAG)"
|
|
|
|
archive: tag
|
|
@git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD > $(NAME)-$(VERSION).tar
|
|
@bzip2 -f $(NAME)-$(VERSION).tar
|
|
@echo "$(NAME)-$(VERSION).tar.bz2 created"
|
|
@sha1sum $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).sha1sum
|
|
@scp $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).sha1sum fedorahosted.org:$(NAME) || scp $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).sha1sum fedorahosted.org:/srv/web/releases/g/e/generic-logos/
|
|
@echo "Everything done, files uploaded to Fedorahosted.org"
|
|
|
|
clean:
|
|
rm -f *~ *bz2 bootloader/fedora.icns
|