summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-04-25 16:22:36 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-04-25 16:22:36 +0000
commitff95c57897cfdac2193b1434231593ae8d862ac0 (patch)
tree8b307495c668f9ce652c2022243aea981e51928b
parentcc4f7a860c0f4ee8deeabee24a14a81125d8556a (diff)
downloadvte-ff95c57897cfdac2193b1434231593ae8d862ac0.tar.gz
Add some targets for building tarballs in a hopefully-reproducible way.
-rw-r--r--HACKING5
-rw-r--r--Makefile.am21
-rw-r--r--configure.in2
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,
[