aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.private
blob: 928a4ac7f844715c1e6dbab193c6e93de7e7ae62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- makefile -*-
# $Id$
#
# Nondistributed Makefile targets
#

REPOSITORY = linux.kernel.org:autofs

upload:	release
	scp autofs-$(RELEASE).tar.gz $(REPOSITORY)

LASTREL := $(shell cat .lastrel)
PREREL  := $(shell cat .prerel 2>/dev/null || echo 1)

patch: reldir
	-rm -rf autofs-$(RELEASE)-pre$(PREREL)*
	mv autofs-$(RELEASE) autofs-$(RELEASE)-pre$(PREREL)
	diff -urN autofs-$(LASTREL) autofs-$(RELEASE)-pre$(PREREL) > \
		autofs-$(RELEASE)-pre$(PREREL).patch || exit `expr $$? - 1`
	gzip -9 autofs-$(RELEASE)-pre$(PREREL).patch

prerel: patch
	scp autofs-$(RELEASE)-pre$(PREREL).patch.gz $(REPOSITORY)/testing
	expr $(PREREL) + 1 > .prerel