File: Maintainer.mk

package info (click to toggle)
fbi 2.07-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,240 kB
  • ctags: 2,357
  • sloc: ansic: 17,896; sh: 59; makefile: 33; perl: 12
file content (28 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (8)
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
# just some maintainer stuff for me ...
########################################################################

make-sync-dir = $(HOME)/projects/gnu-makefiles

.PHONY: sync
sync:: distclean
	test -d $(make-sync-dir)
	rm -f $(srcdir)/INSTALL $(srcdir)/mk/*.mk
	cp -v $(make-sync-dir)/INSTALL $(srcdir)/.
	cp -v $(make-sync-dir)/*.mk $(srcdir)/mk
	chmod 444 $(srcdir)/INSTALL $(srcdir)/mk/*.mk


repository = $(shell cat CVS/Repository)
release-dir ?= $(HOME)/projects/Releases
release-pub ?= goldbach@me.in-berlin.de:dl.bytesex.org/releases/$(repository)
tarball = $(release-dir)/$(repository)-$(VERSION).tar.gz

.PHONY: release
release:
	cvs tag $(RELTAG)
	cvs export -r $(RELTAG) -d "$(repository)-$(VERSION)" "$(repository)"
	find "$(repository)-$(VERSION)" -name .cvsignore -exec rm -fv "{}" ";"
	tar -c -z -f "$(tarball)" "$(repository)-$(VERSION)"
	rm -rf "$(repository)-$(VERSION)"
	scp $(tarball) $(release-pub)