forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian: Attempt to keep debian/changelog up-to-date.
Invariably we forget to update the version number in debian/changelog as we change OVS's own version number. This is embarrassing. This commit introduces two different times to automatically update the debian/changelog version number: whenever boot.sh runs and whenever "make dist" runs. In the latter case, only the version number in the distributed tarball is updated, but that seems OK. Reported by Joan Cirer <[email protected]> most recently, and by others over the last year or so too.
- Loading branch information
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
#! /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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /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 <[email protected]> `date -u +"%a, %d %b %Y %H:%M:%S +0000"` | ||
EOF | ||
cat "$CHANGELOG" | ||
} > "$CHANGELOG".new | ||
mv "$CHANGELOG".new "$CHANGELOG" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters