summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-11-03 01:58:56 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-11-03 01:58:56 +0100
commit259ed9644d1788d33c7d7532f94ebd4e1d123edb (patch)
treea019183e37764775e717f29aeb609561c5016a27
parentc07c888321eab17620bdb0451b04db99ee1b6431 (diff)
Relocate version.txt, leave a copy in old place for a while for upgrades to work
-rw-r--r--plugins/upd/upd.c4
-rw-r--r--src/version/version.c3
-rw-r--r--win32/version.txt1
3 files changed, 5 insertions, 3 deletions
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