From ff95c57897cfdac2193b1434231593ae8d862ac0 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 25 Apr 2002 16:22:36 +0000 Subject: Add some targets for building tarballs in a hopefully-reproducible way. --- HACKING | 5 ++--- Makefile.am | 21 +++++++++++++++++++++ configure.in | 2 +- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/HACKING b/HACKING index 945145b8..caeebf44 100644 --- a/HACKING +++ b/HACKING @@ -1,6 +1,5 @@ -This tree will stay in disarray until I clean up some basic stuff (as -others have put it, this is "some highly unsupported crackrock"). Please -contact me directly if you intend to hack on it. +This entire tree is "some highly unsupported crackrock". Please contact me +directly if you intend to hack on it. Thanks, diff --git a/Makefile.am b/Makefile.am index 700cf552..bbeea3e2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,3 +3,24 @@ EXTRA_DIST = HACKING vte.spec vte.pc.in pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = vte.pc + +CVSTAG=$(shell echo $(PACKAGE)-$(VERSION) | sed 's,[\.\-],_,g') + +tag: + : cvs tag -cFR $(CVSTAG) . + +archive: + root=`cat CVS/Root` ; \ + repo=`cat CVS/Repository` ; \ + dir=`pwd` ; \ + tmpdir=`mktemp -d /tmp/$(PACKAGE)-cvsXXXXXX` ; \ + cd $$tmpdir ; \ + cvs -d $$root export -r $(CVSTAG) $$repo ; \ + cd $$repo ; \ + ./autogen.sh ; \ + make distcheck ; \ + cp $(PACKAGE)-$(VERSION).tar.gz $$dir ; \ + rm -fr $$tmpdir + +srpm: $(PACKAGE)-$(VERSION).tar.gz + rpm -ts $(PACKAGE)-$(VERSION).tar.gz diff --git a/configure.in b/configure.in index 4fb3f623..0d2bd97d 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ AC_INIT(configure.in) -AM_INIT_AUTOMAKE(vte,0.1) +AM_INIT_AUTOMAKE(vte,`grep ^Version: vte.spec | awk '{print $NF}'`) AM_PROG_LIBTOOL AC_EGREP_CPP(glibc, [ -- cgit v1.2.1