Compare commits

...

9 Commits

Author SHA1 Message Date
Bruno Wolff III
8311504e19 Make directories if needed and use specific permissions 2013-06-29 15:44:34 -05:00
Bruno Wolff III
5149abf0f9 The doc directory is versioned 2013-06-29 15:30:55 -05:00
Bruno Wolff III
15a9a14dff Missing wildcard instances causes a problem 2013-06-29 15:17:50 -05:00
Bruno Wolff III
629a71433c Fix install target
Installing a mix of directories and files on the same install
command doesn't work.
2013-06-29 14:59:42 -05:00
Bruno Wolff III
e2a8980bee Use DESTDIR instead of prefix 2013-06-29 14:45:41 -05:00
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 25 additions and 4 deletions

View File

@@ -5,13 +5,34 @@ ifeq ($(version),)
version := $(shell git log -1 --abbrev=8 --pretty=git%h)
endif
DESTDIR := /usr
DATADIR := $(DESTDIR)/share
DOCDIR := $(DATADIR)/doc
name := spin-kickstarts
all: dist
install:
mkdir -p -m 755 $(DATADIR)/$(name)
install *.ks* -m 644 $(DATADIR)/$(name)
mkdir -p -m 755 $(DATADIR)/$(name)/custom
install -m 644 custom/* $(DATADIR)/$(name)/custom
mkdir -p -m 755 $(DATADIR)/$(name)/l10n
install -m 644 l10n/* $(DATADIR)/$(name)/l10n
mkdir -p -m 755 $(DOCDIR)/$(name)-$(version)
install -m 644 AUTHORS COPYING README $(DOCDIR)/$(name)-$(version)
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