From 836ed6e16de0869a6c88d88c54042b513d56c452 Mon Sep 17 00:00:00 2001 From: "Srivats P." Date: Sat, 10 Apr 2010 17:04:54 +0530 Subject: [PATCH] Provided option to manually specify revision hash for source packages and tarballs --- version.pri | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/version.pri b/version.pri index f19cb31c..d1f53fcb 100644 --- a/version.pri +++ b/version.pri @@ -1,12 +1,15 @@ APP_VERSION = 0.1 +APP_REVISION = $(shell hg identify -i) +#uncomment the below line in a source package and fill-in the correct revision +#APP_REVISION = APP_VERSION_FILE = version.cpp revtarget.target = $$APP_VERSION_FILE win32:revtarget.commands = echo "const char *version = \"$$APP_VERSION\";" \ - "const char *revision = \"$(shell hg identify -i)\";" \ + "const char *revision = \"$$APP_REVISION\";" \ > $$APP_VERSION_FILE unix:revtarget.commands = echo \ "\"const char *version = \\\"$$APP_VERSION\\\";" \ - "const char *revision = \\\"$(shell hg identify -i)\\\";\"" \ + "const char *revision = \\\"$APP_REVISION\\\";\"" \ > $$APP_VERSION_FILE revtarget.depends = $$SOURCES $$HEADERS $$FORMS $$POST_TARGETDEPS