diff libpurple/protocols/qq/Makefile.mingw @ 24264:d971d5369b43

2008.10.30 - flos <lonicerae(at)gmail.com> * Fixed a bug which made xgettext failed in buddy_info.c * Fixed a bug in Makefile.am and Makefile.mingw * Updated acknowledgement in qq.c
author SHiNE CsyFeK <csyfek@gmail.com>
date Thu, 30 Oct 2008 12:41:36 +0000
parents 1ee91ff0d5fe
children fecedf6d9ee1
line wrap: on
line diff
--- a/libpurple/protocols/qq/Makefile.mingw	Tue Oct 28 16:59:07 2008 +0000
+++ b/libpurple/protocols/qq/Makefile.mingw	Thu Oct 30 12:41:36 2008 +0000
@@ -6,10 +6,16 @@
 
 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}')
+		 if [ -e ./.hg_archival.txt ]; then \
+		   awk 'BEGIN {"grep node .hg_archival.txt" | getline rev; \
+		   rev=substr(rev,7,6); print rev}' > current_revision; \
+		 else \
+		   echo "!hg" > current_revision; \
+		 fi; \
+		 cat ./current_revision)
+
 TARGET = libqq
 TYPE = PLUGIN