Compare commits

...

4 Commits

Author SHA1 Message Date
Bruno Wolff III
89d097db42 Add an install target to the make file
The fedora package uses make install, and it is easier to support that
here rather than in the spec file.
2013-06-29 14:37:50 -05:00
Bruno Wolff III
93e94db57a Fix typo in tar ball name 2013-06-29 13:55:02 -05:00
Bruno Wolff III
cb29cc9c18 Add a make publish function 2013-06-29 13:53:08 -05:00
Bruno Wolff III
3d2542b16d Fix pushing tags instruction 2013-06-29 13:49:01 -05:00
2 changed files with 19 additions and 4 deletions

View File

@@ -5,13 +5,28 @@ ifeq ($(version),)
version := $(shell git log -1 --abbrev=8 --pretty=git%h)
endif
prefix := /usr
datadir := $(prefix)/share
docdir := $(datadir)/doc/
name := spin-kickstarts
all: dist
install:
install *.ks custom l10n $(datadir)/$(name)
install AUTHORS COPYING README $(docdir)/$(name)
clean:
rm -f spin-kickstarts-*.tar.gz
rm -f $(name)-*.tar.gz
dist:
git archive --format=tar --prefix=spin-kickstarts-$(version)/ HEAD | gzip > spin-kickstarts.tar-$(version).gz
git archive --format=tar --prefix=$(name)-$(version)/ HEAD | gzip > $(name)-$(version).tar.gz
publish:
scp $(name)-$(version).tar.gz fedorahosted.org:$(name)
dist-clean:
git clean -f -d

4
README
View File

@@ -15,9 +15,9 @@ cd spin-kickstarts
git checkout BRANCHNAME
# No tag has been added yet tag HEAD with
git tag VERSION
git push tag VERSION
git push --tags
make
# Publish the released tar ball
scp spin-kickstarts-*.tar.gz fedorahosted.org:spin-kickstarts
make publish
# Clean up the generated files:
make clean