From 73fc46b3e202ff106002d25c8d781cbe9387963a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 7 Jun 2009 22:56:48 +0200 Subject: generate --version string from macro --- Makefile | 2 +- rtkit-daemon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5fd87e7..405d288 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS=-Wextra -Wall -O0 -g `pkg-config --cflags dbus-1` -pthread -fdiagnostics-show-option +CFLAGS=-Wextra -Wall -O0 -g `pkg-config --cflags dbus-1` -pthread -fdiagnostics-show-option -DPACKAGE_VERSION=\"0.1\" LIBS= `pkg-config --libs dbus-1` -lrt all: rtkit-daemon rtkit-test rtkitctl diff --git a/rtkit-daemon.c b/rtkit-daemon.c index e0c3a53..88d01db 100644 --- a/rtkit-daemon.c +++ b/rtkit-daemon.c @@ -1704,7 +1704,7 @@ static int parse_command_line(int argc, char *argv[], int *ret) { return 0; case ARG_VERSION: - printf("%s 0.1\n", get_file_name(argv[0])); + printf("%s " PACKAGE_VERSION "\n", get_file_name(argv[0])); *ret = 0; return 0; -- cgit