changeset 24153:340fc40fe4ef

2008.10.08 - lonicerae <lonicerae(at)gmail.com> * Update Makefile.mingw * Merge ccpaging and lonicerae into trunk
author SHiNE CsyFeK <csyfek@gmail.com>
date Wed, 22 Oct 2008 15:06:26 +0000
parents d3811bdb6b07
children 237e5a94e11c
files libpurple/protocols/qq/ChangeLog libpurple/protocols/qq/Makefile.mingw
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/qq/ChangeLog	Wed Oct 22 15:04:33 2008 +0000
+++ b/libpurple/protocols/qq/ChangeLog	Wed Oct 22 15:06:26 2008 +0000
@@ -1,3 +1,6 @@
+2008.10.08 - lonicerae <lonicerae(at)gmail.com>
+	* Update Makefile.mingw
+
 2008.10.08 - ccpaging <ccpaging(at)gmail.com>
 	* Fixed QQ_BUDDY_ICON_DIR problem
 
--- a/libpurple/protocols/qq/Makefile.mingw	Wed Oct 22 15:04:33 2008 +0000
+++ b/libpurple/protocols/qq/Makefile.mingw	Wed Oct 22 15:06:26 2008 +0000
@@ -6,7 +6,10 @@
 
 PIDGIN_TREE_TOP := ../../..
 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
-
+CURRENT_REVISION=$(shell \
+		 awk 'BEGIN {"grep node .hg_archival.txt" | getline rev; \
+		 rev=substr(rev,7,6); \
+		 print rev}')
 TARGET = libqq
 TYPE = PLUGIN
 
@@ -16,6 +19,7 @@
 	DLL_INSTALL_DIR =	$(PURPLE_INSTALL_DIR)
 else
 ifeq ($(TYPE),PLUGIN)
+	DEFINES += -DOPENQ_VERSION=\"$(CURRENT_REVISION)\"
 	DLL_INSTALL_DIR =	$(PURPLE_INSTALL_PLUGINS_DIR)
 endif
 endif