Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Version 1.0.12
  • Loading branch information
monich committed Apr 22, 2014
2 parents 2c9bb47 + 318abad commit 17811a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions mms-engine/Makefile
Expand Up @@ -96,8 +96,8 @@ RELEASE_FLAGS += -g
SUBMAKE_OPTS += KEEP_SYMBOLS=1
endif

ifdef MMS_VERSION
CFLAGS += -DMMS_VERSION="$(MMS_VERSION)"
ifdef MMS_ENGINE_VERSION
CFLAGS += -DMMS_ENGINE_VERSION="$(MMS_ENGINE_VERSION)"
endif

DEBUG_CFLAGS = $(DEBUG_FLAGS) $(DEBUG_DEFS) $(CFLAGS)
Expand Down
8 changes: 4 additions & 4 deletions mms-engine/main.c
Expand Up @@ -157,7 +157,7 @@ mms_app_parse_options(
gboolean ok;
GError* error = NULL;
gboolean session_bus = FALSE;
#ifdef MMS_VERSION
#ifdef MMS_ENGINE_VERSION
gboolean print_version = FALSE;
#endif
gint size_limit_kb = opt->config.size_limit/1024;
Expand Down Expand Up @@ -209,7 +209,7 @@ mms_app_parse_options(
"Log output (stdout|syslog|glib) [stdout]", "TYPE" },
{ "log-level", 'l', 0, G_OPTION_ARG_CALLBACK, mms_app_option_loglevel,
"Set log level (repeatable)", "[MODULE:]LEVEL" },
#ifdef MMS_VERSION
#ifdef MMS_ENGINE_VERSION
{ "version", 0, 0, G_OPTION_ARG_NONE, &print_version,
"Print program version and exit", NULL },
#endif
Expand All @@ -228,11 +228,11 @@ mms_app_parse_options(
g_free(megapixels_help);
g_free(description);

#ifdef MMS_VERSION
#ifdef MMS_ENGINE_VERSION
# define MMS_STRING__(x) #x
# define MMS_STRING_(x) MMS_STRING__(x)
if (print_version) {
printf("MMS engine %s\n", MMS_STRING_(MMS_VERSION));
printf("MMS engine %s\n", MMS_STRING_(MMS_ENGINE_VERSION));
*result = RET_OK;
return FALSE;
} else
Expand Down
4 changes: 2 additions & 2 deletions rpm/mms-engine.spec
@@ -1,6 +1,6 @@
Name: mms-engine
Summary: MMS engine
Version: 1.0.11
Version: 1.0.12
Release: 1
Group: Communications/Telephony and IM
License: GPLv2
Expand Down Expand Up @@ -46,7 +46,7 @@ MMS command line utilities
%setup -q -n %{name}-%{version}

%build
make -C %{src} KEEP_SYMBOLS=1 MMS_VERSION="%{version}" release
make -C %{src} KEEP_SYMBOLS=1 MMS_ENGINE_VERSION="%{version}" release
make -C mms-dump KEEP_SYMBOLS=1 release
make -C mms-send KEEP_SYMBOLS=1 release

Expand Down

0 comments on commit 17811a2

Please sign in to comment.