From b1db52e62be1a700517308877b08dbf8c5d9e1eb Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 12 Jun 2009 17:31:39 +0200 Subject: Make use of setup_common::get_version() in python-dmidecode.spec as well Now you only need to change the src/version.h to set the correct version numbers. The utils/set_version script will still help you remember the important steps and make sure you don't do the wrong things. --- utils/set_version | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'utils') diff --git a/utils/set_version b/utils/set_version index 41c3337..fcb081f 100755 --- a/utils/set_version +++ b/utils/set_version @@ -35,12 +35,12 @@ case $conf in echo " ** Updating src/version.h" printf ",s/^#define VERSION \".*\"/#define VERSION \"${NEW_VERSION}\"/\nw\n" | ed src/version.h 2>/dev/null - echo " ** Updating redhat.spec" - printf ",s/^Version: .*/Version: ${NEW_VERSION}/\nw\n" | ed contrib/python-dmidecode.spec 2>/dev/null - echo - echo " ** git add src/version.h redhat.spec" - git add src/version.h contrib/python-dmidecode.spec + echo " ** git add src/version.h" + git add src/version.h + git diff --cached + echo + echo " REMEMBER to commit this change when you have validated the result" echo ;; *) -- cgit