diff options
author | H. Peter Anvin <hpa@zytor.com> | 1997-10-06 21:39:57 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 1997-10-06 21:39:57 +0000 |
commit | f1a85a8320f9fab4019c4e83bd59420fa45fa408 (patch) | |
tree | 17957ad206407bc9a9f7c3d53bafe5282ad6b2a4 /releases | |
parent | 3b7c3119b95b43f970c8784fcc946cdc44f9e56d (diff) | |
download | autofs3-f1a85a8320f9fab4019c4e83bd59420fa45fa408.tar.gz autofs3-f1a85a8320f9fab4019c4e83bd59420fa45fa408.tar.xz autofs3-f1a85a8320f9fab4019c4e83bd59420fa45fa408.zip |
Moved release stuff into separate directory
Diffstat (limited to 'releases')
-rw-r--r-- | releases/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/releases/Makefile b/releases/Makefile new file mode 100644 index 0000000..08849fa --- /dev/null +++ b/releases/Makefile @@ -0,0 +1,57 @@ +# -*- makefile -*- +# $Id$ +# +# Nondistributed Makefile targets +# + +REPOSITORY = linux.kernel.org:autofs + +RELEASE := $(shell cat ../.version) +LASTREL := $(shell cat ../.lastrel) +PREREL := $(shell cat ../.prerel 2>/dev/null || echo 1) + +.PHONY: release newrelease + +reldir: + -rm -rf autofs-$(RELEASE) autofs-$(RELEASE).tar.gz + mkdir autofs-$(RELEASE) + cd ..; cp -R $(SUBDIRS) $(INCDIRS) $(INCFILES) releases/autofs-$(RELEASE) + $(MAKE) -C autofs-$(RELEASE) distclean + find autofs-$(RELEASE) -noleaf -name \*norel -print0 | xargs -0 rm -rf + +release: reldir + -rm -f ../.prerel ../.lastrel + cp ../.version ../.lastrel + tar cvvf - autofs-$(RELEASE) | gzip -9 > autofs-$(RELEASE).tar.gz + +since: + mv -f ../NEWS ../NEWS.old + echo 'Since autofs-$(RELEASE):' > ../NEWS + echo 'Since autofs-$(RELEASE):' | sed -e 's/./-/g' >> ../NEWS + echo '' >> ../NEWS + cat ../NEWS.old >> ../NEWS + +newrelease: clean since + echo `cut -d. -f1-2 < .version`.`expr \`cut -d. -f3 < .version\` + 1` \ + > ../.version + +newminorrelease: clean since + echo `cut -d. -f1 < .version`.`expr \`cut -d. -f2 < .version\` + 1`.0 \ + > ../.version + +newmajorrelease: clean since + echo `expr \`cut -d. -f1 < .version\` + 1`.0.0 > ../.version + +upload: release + scp autofs-$(RELEASE).tar.gz $(REPOSITORY) + +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 |