summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rwxr-xr-xboot.sh4
-rwxr-xr-xbuild-aux/update-debian-changelog37
-rw-r--r--configure.ac1
-rw-r--r--debian/automake.mk14
-rw-r--r--debian/changelog2
6 files changed, 12 insertions, 47 deletions
diff --git a/Makefile.am b/Makefile.am
index 62d4d491b..718332622 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -69,7 +69,6 @@ SUFFIXES =
noinst_HEADERS += $(EXTRA_DIST)
EXTRA_DIST += \
- build-aux/update-debian-changelog \
soexpand.pl
ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */'
diff --git a/boot.sh b/boot.sh
index dce5625c5..05dd35996 100755
--- a/boot.sh
+++ b/boot.sh
@@ -1,6 +1,2 @@
#! /bin/sh
autoreconf --install --force
-
-# Ensure that debian/changelog is up-to-date.
-VERSION=`autom4te --language=autoconf -t 'AC_INIT:$2' configure.ac`
-build-aux/update-debian-changelog debian/changelog "$VERSION"
diff --git a/build-aux/update-debian-changelog b/build-aux/update-debian-changelog
deleted file mode 100755
index 9353e7009..000000000
--- a/build-aux/update-debian-changelog
+++ /dev/null
@@ -1,37 +0,0 @@
-#! /bin/sh
-
-if test $# != 2; then
- cat <<EOF
-$0, to update version information a Debian changelog
-usage: $0 CHANGELOG VERSION
-
-This utility checks whether CHANGELOG, which should be a Debian changelog
-file, contains a record for VERSION. If not, then it adds one at the top.
-EOF
- exit 1
-fi
-
-CHANGELOG=$1
-VERSION=$2
-if test ! -e "$CHANGELOG"; then
- echo "$0: $CHANGELOG does not exist (use --help for help"
- exit 1
-fi
-
-if grep '('$VERSION')' debian/changelog >/dev/null 2>&1; then
- :
-else
- echo "Adding change log record for $VERSION to $CHANGELOG"
- {
- cat <<EOF
-openvswitch ($VERSION) unstable; urgency=low
-
- * New upstream version.
-
- -- Open vSwitch team <dev@openvswitch.org> `date -u +"%a, %d %b %Y %H:%M:%S +0000"`
-
-EOF
- cat "$CHANGELOG"
- } > "$CHANGELOG".new
- mv -f "$CHANGELOG".new "$CHANGELOG"
-fi
diff --git a/configure.ac b/configure.ac
index aff53a1f6..5dd6590ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,7 @@ AM_PROG_CC_C_O
AC_PROG_CPP
AC_PROG_RANLIB
AC_PROG_MKDIR_P
+AC_PROG_FGREP
AC_ARG_VAR([PERL], [path to Perl interpreter])
AC_PATH_PROG([PERL], perl, no)
diff --git a/debian/automake.mk b/debian/automake.mk
index ad347df75..7c656c8a8 100644
--- a/debian/automake.mk
+++ b/debian/automake.mk
@@ -62,7 +62,13 @@ EXTRA_DIST += \
debian/rules \
debian/rules.modules
-dist-hook-debian-changelog:
- $(srcdir)/build-aux/update-debian-changelog '$(distdir)/debian/changelog' '$(VERSION)'
-DIST_HOOKS += dist-hook-debian-changelog
-EXTRA_DIST += build-aux/update-debian-changelog
+check-debian-changelog-version:
+ @if $(FGREP) '($(VERSION))' $(srcdir)/debian/changelog >/dev/null; \
+ then \
+ :; \
+ else \
+ echo "Update debian/changelog to mention version $(VERSION)"; \
+ exit 1; \
+ fi
+ALL_LOCAL += check-debian-changelog-version
+DIST_HOOKS += check-debian-changelog-version
diff --git a/debian/changelog b/debian/changelog
index 945f65d60..216e089e1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-openvswitch (1.0.0) unstable; urgency=low
+openvswitch (1.0.1) unstable; urgency=low
* New upstream version.