From 259ed9644d1788d33c7d7532f94ebd4e1d123edb Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sat, 3 Nov 2012 01:58:56 +0100 Subject: [PATCH] Relocate version.txt, leave a copy in old place for a while for upgrades to work --- plugins/upd/upd.c | 4 ++-- src/version/version.c | 3 ++- win32/version.txt | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 win32/version.txt diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c index 019d00a3..b986b96e 100644 --- a/plugins/upd/upd.c +++ b/plugins/upd/upd.c @@ -47,7 +47,7 @@ check_version () } hFile = InternetOpenUrl (hINet, - "https://raw.github.com/hexchat/hexchat/master/version.txt", + "https://raw.github.com/hexchat/hexchat/master/win32/version.txt", NULL, 0, INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_RELOAD, @@ -117,7 +117,7 @@ check_version () hResource = HttpOpenRequest (hConnect, TEXT ("GET"), - TEXT ("/hexchat/hexchat/master/version.txt"), + TEXT ("/hexchat/hexchat/master/win32/version.txt"), TEXT ("HTTP/1.0"), NULL, NULL, diff --git a/src/version/version.c b/src/version/version.c index 202f2bd2..3c1e44cc 100644 --- a/src/version/version.c +++ b/src/version/version.c @@ -113,7 +113,8 @@ main (int argc, char *argv[]) else if (!strcmp (argv[1], "-v")) /* version.txt */ { printf ("%s", PACKAGE_VERSION); - } else + } + else { printf ("usage:\n\t-a\thexchat.iss/AppVerName\n\t-i\thexchat.iss/VersionInfoVersion\n\t-o\thexchat.iss/OutputBaseFilename\n\t-r\thexchat.rc/FILEVERSION, PRODUCTVERSION\n\t-v\thexchat.iss/AppVersion\n"); } diff --git a/win32/version.txt b/win32/version.txt new file mode 100644 index 00000000..eafef0d4 --- /dev/null +++ b/win32/version.txt @@ -0,0 +1 @@ +2.9.3 \ No newline at end of file