[Commit] nickle make-version.sh, NONE, 1.1 ChangeLog, 1.10, 1.11 Makefile.am, 1.43, 1.44

Keith Packard commit at keithp.com
Thu Feb 26 19:20:01 PST 2004


Committed by: keithp

Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv785

Modified Files:
	ChangeLog Makefile.am 
Added Files:
	make-version.sh 
Log Message:
2004-02-26  Keith Packard  <keithp at keithp.com>

	* Makefile.am:
	* debian/changelog:
	* debian/compat:
	* debian/control:
	* debian/copyright:
	* debian/nickle.install:
	* debian/rules:
	* make-version.sh:
	Clean up debian build instructions to make non-native package
	that conforms to policy.
	Change version.h build instructions


--- NEW FILE: make-version.sh ---
#!/bin/sh
FILE=$1
CURHEADER="`sed -e '/CURHEADER/!d' -e 's=^.*\$\(.*\)\$$=\1=' <$FILE`"
OLDHEADER="`sed -e '/OLDHEADER/!d' -e 's=^.*<\(.*\)>$=\1=' <$FILE`"
CURVERSION="`sed -e '/CURVERSION/!d' -e 's=^[^0-9]*\(.*\)$=\1=' <$FILE`"

( echo '/* This file is maintained automatically by update-version.sh */'
  echo "#define BUILD_VERSION \"$CURVERSION\"" ) > version.h

Index: ChangeLog
===================================================================
RCS file: /local/src/CVS/nickle/ChangeLog,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ChangeLog	16 Feb 2004 07:41:40 -0000	1.10
+++ ChangeLog	27 Feb 2004 03:19:59 -0000	1.11
@@ -1,3 +1,17 @@
+2004-02-26  Keith Packard  <keithp at keithp.com>
+
+	* Makefile.am:
+	* debian/changelog:
+	* debian/compat:
+	* debian/control:
+	* debian/copyright:
+	* debian/nickle.install:
+	* debian/rules:
+	* make-version.sh:
+	Clean up debian build instructions to make non-native package
+	that conforms to policy.
+	Change version.h build instructions
+
 2004-02-15  Keith Packard  <keithp at keithp.com>
 
 	* Makefile.am:

Index: Makefile.am
===================================================================
RCS file: /local/src/CVS/nickle/Makefile.am,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- Makefile.am	27 Feb 2004 01:40:58 -0000	1.43
+++ Makefile.am	27 Feb 2004 03:19:59 -0000	1.44
@@ -16,10 +16,10 @@
 	examples/rsa.5c
 TEST = test/gcdtest.5c test/inttest.5c test/rattest.5c
 
-DEBIAN = debian/changelog  debian/control debian/copyright \
-	debian/docs debian/files debian/rules
-
-EXTRA_DIST = README.name autogen.sh update-version.sh \
+DEBIAN = debian/nickle.install debian/changelog debian/compat \
+	 debian/control debian/copyright debian/rules
+	 
+EXTRA_DIST = README.name autogen.sh update-version.sh make-version.sh \
 	$(NICKLEFILES) gram.h $(EXAMPLES) $(TEST) $(DEBIAN) version.m4
 
 bin_PROGRAMS = nickle
@@ -68,5 +68,12 @@
 
 builtin.o: builtin/version.h
 
-builtin/version.h: $(top_srcdir)/update-version.sh $(top_srcdir)/version.m4
-	sh $(top_srcdir)/update-version.sh $(top_srcdir)/version.m4
+version.h: $(top_srcdir)/make-version.sh $(top_srcdir)/version.m4
+	sh $(top_srcdir)/make-version.sh $(top_srcdir)/version.m4
+
+debuild: distdir
+	cp -a $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).orig
+	rm -rf $(PACKAGE)-$(VERSION).orig/debian
+	(cd $(PACKAGE)-$(VERSION)/debian && debuild)
+
+.PHONY: debuild




More information about the Commit mailing list