diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-13 18:35:47 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-13 18:35:47 +0200 |
commit | 98dc22328ff2a42adacd6c5c70e70a6944b5a7ff (patch) | |
tree | 2a1c814cb79b9efbf95828d4d84995643c20e5fa /src | |
parent | 16d32fdeda288f5b8be71aea4a2f554b694d13eb (diff) |
Fix installer script generation
Diffstat (limited to 'src')
-rw-r--r-- | src/version/version.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/version/version.c b/src/version/version.c index 40b1bc8f..9dcccf9b 100644 --- a/src/version/version.c +++ b/src/version/version.c @@ -59,7 +59,8 @@ point () if (sscanf (PACKAGE_VERSION, "%c%c%c%c-%d", &major1, &major2, &major3, &major4, &minor) > 4) { sprintf (version_string, "%c%c.%c%c.%d.0", major1, major2, major3, major4, minor); - } else + } + else { sprintf (version_string, "%c%c.%c%c.0.0", major1, major2, major3, major4); } @@ -86,11 +87,13 @@ main (int argc, char *argv[]) } else if (!strcmp (argv[1], "-v")) /* hexchat.iss/AppVersion */ { - printf ("AppVersion=%s\n", point ()); + /* printf ("AppVersion=%s\n", point ()); this was required only for nnnn[-n] version numbers */ + printf ("AppVersion=%s\n", PACKAGE_VERSION); } else if (!strcmp (argv[1], "-i")) /* hexchat.iss/VersionInfoVersion */ { - printf ("VersionInfoVersion=%s\n", point ()); + /* printf ("VersionInfoVersion=%s\n", point ()); this was required only for nnnn[-n] version numbers */ + printf ("VersionInfoVersion=%s\n", PACKAGE_VERSION); } else if (!strcmp (argv[1], "-o")) /* hexchat.iss/OutputBaseFilename */ { |