From 70d7dc227ef28c7c3a9da3bf863574e5be0d5756 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 6 Feb 2009 11:36:41 +0000 Subject: =?UTF-8?q?2009-02-06=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Makefile.maint: Dump stuff hanging around for much too long. --- Makefile.maint | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Makefile.maint') diff --git a/Makefile.maint b/Makefile.maint index 09e342f495..a189fa7d61 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -131,6 +131,23 @@ new-revision: $(VERSION_FILES); \ sed -i -e "s,\(^RTEMS Version\).*,\1 $$version," VERSION +# ----------------- +# Create a new branch +# increments the 2nd digit of the version number +# set the 3rd digit of the version number to 99 +# set the 4rd digit of the version number to 0 +# Example: 4.6.34.4 -> 4.7.99.0 +new-branch: + v=$$(echo $(rtems_version) | sed 's,^\([0-9]\+\).*,\1,'); \ + r=$$(echo $(rtems_version) | sed 's,^[0-9]\+\.\([0-9]\+\).*,\1,'); \ + r=$$(($$r + 1)); version="$$v.$$r.99.0"; \ + api="$$v.$$(($$r + 1))"; \ + echo "New branch release: $$version"; \ + sed -i -e "s|\[_RTEMS_VERSION\],\[.*\]|\[_RTEMS_VERSION\],\[$$version\]|" \ + -e "s|\[RTEMS_API\],\[.*\]|\[RTEMS_API\],\[$$api\]|" \ + $(VERSION_FILES); \ + sed -i -e "s,\(^RTEMS Version\).*,\1 $$version," VERSION + VERSION_FILES += aclocal/version.m4 VERSION_FILES += cpukit/aclocal/version.m4 VERSION_FILES += c/src/aclocal/version.m4 -- cgit v1.2.3