Skip to contentSkip to conversation

Use PACKAGE_VERSION for POWERTOP_VERSION

PATCH In review Namhyung Kim 3 participants 3 messages Nov 17, 2012 – Nov 29, 2012

lore
Share & tools
lore

Namhyung Kim

author
#0 lore raw

PATCH 1/1 Use PACKAGE_VERSION for POWERTOP_VERSION

It was missed to update POWERTOP_VERSION macro so that the new v2.2 release still shows v2.1 string on the header of ncurses window. Convert to use PACKAGE_VERSION macro which set by autotools to the AC_INIT version so that it cannot be missed anymore.

Signed-off-by Namhyung Kim <namhyung(a)gmail.com>
---
 src/lib.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/lib.h +2 -2
index 8cf4632..209421a 100644
@@ -35,8 +35,8 @@
 
 #define _(STRING)    gettext(STRING)
 
-#define POWERTOP_VERSION "v2.1"
-#define POWERTOP_SHORT_VERSION "2.1"
+#define POWERTOP_VERSION "v"PACKAGE_VERSION
+#define POWERTOP_SHORT_VERSION PACKAGE_VERSION
 
 
 extern int get_max_cpu(void);
Signature · 1 line
1.7.9.2
#1 lore raw
Quoted 8 lines · Namhyung Kim

It was missed to update POWERTOP_VERSION macro so that the new v2.2 release still shows v2.1 string on the header of ncurses window. Convert to use PACKAGE_VERSION macro which set by autotools to the AC_INIT version so that it cannot be missed anymore.

Signed-off-by Namhyung Kim <namhyung(a)gmail.com>

---

looks good to me, thanks.

	-ss
Quoted 26 lines
 src/lib.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/lib.h +2 -2
index 8cf4632..209421a 100644
@@ -35,8 +35,8 @@
 
 #define _(STRING)    gettext(STRING)
 
-#define POWERTOP_VERSION "v2.1"
-#define POWERTOP_SHORT_VERSION "2.1"
+#define POWERTOP_VERSION "v"PACKAGE_VERSION
+#define POWERTOP_SHORT_VERSION PACKAGE_VERSION
 
 
 extern int get_max_cpu(void);
Signature · 6 lines
1.7.9.2

_______________________________________________
PowerTop mailing list
PowerTop(a)lists.01.org
https://lists.01.org/mailman/listinfo/powertop
#2 lore raw
In reply to Namhyung Kim
Quoted 16 lines · Namhyung Kim

It was missed to update POWERTOP_VERSION macro so that the new v2.2 release still shows v2.1 string on the header of ncurses window. Convert to use PACKAGE_VERSION macro which set by autotools to the AC_INIT version so that it cannot be missed anymore.

Signed-off-by Namhyung Kim <namhyung(a)gmail.com>
---
  src/lib.h |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
src/lib.h +0 -0
index 8cf4632..209421a 100644

src/lib.h line 42

Quoted 10 lines
src/lib.h +2 -2
@@ -35,8 +35,8 @@
 
  #define _(STRING)    gettext(STRING)
 
-#define POWERTOP_VERSION "v2.1"
-#define POWERTOP_SHORT_VERSION "2.1"
+#define POWERTOP_VERSION "v"PACKAGE_VERSION
+#define POWERTOP_SHORT_VERSION PACKAGE_VERSION
 
 
  extern int get_max_cpu(void);

Your patch has been applied
-Chris