forked from maemo-leste/atinout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.dist
42 lines (38 loc) · 1020 Bytes
/
make.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include Makefile
DIST_FILES = \
Changelog \
Makefile \
README \
atinout.1 \
atinout.1.html \
atinout.c \
atinout.spec \
gplv3.txt \
logo/atinout.svg
changelog:
( \
echo; \
date +"Version $(VERSION) (%Y-%m-%d)"; \
echo ----------------------------; \
echo; \
) >> Changelog
vi +$(shell wc -l Changelog)
(date | sed 's/^/* /; s/ ..:..:.. CES?T//' | tr -d '\012'; echo " Håkon Løvdal <[email protected]> - $(VERSION)-1") >> atinout.spec.in
sed -n '/$(VERSION)/,$$p' Changelog | sed '1,3d; s/^\*/-/' >> atinout.spec.in
vi +$(shell wc -l atinout.spec.in)
dist_tar_file:
if [ `git tag -l v$(VERSION)`x == x ]; \
then \
echo "Tag v$(VERSION) is missing, fix that"; \
exit 1; \
fi
if [ -f Makefile.SAVE ]; \
then \
echo "Resolve Makefile.SAVE conflict"; \
exit 1; \
fi
mv Makefile Makefile.SAVE
./strip_make.pl Makefile.SAVE > Makefile
git diff Makefile
tar zcvf atinout-$(VERSION).tar.gz --transform="s@^@atinout-$(VERSION)/@" $(DIST_FILES)
mv Makefile.SAVE Makefile