blob: 8b6861b6b75a747b2418fbb33a184c4762ab9994 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
NAME=setup
VERSION := $(shell awk '/Version:/ { print $$2 }' $(NAME).spec)
TAG=$(NAME)-$(VERSION)
check:
@echo Sanity checking selected files....
bash -n bashrc
bash -n profile
./uidgidlint ./uidgid
./serviceslint ./services
tag-archive: check
@git tag -a -m "Tag as $(TAG)" -f $(TAG)
create-archive:
@git-archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | bzip2 > $(NAME)-$(VERSION).tar.bz2
@echo "The archive is at $(NAME)-$(VERSION).tar.bz2"
archive: tag-archive create-archive
clean:
rm -f *.bz2
|