Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Provided option to manually specify revision hash for source packages…
Browse files Browse the repository at this point in the history
… and tarballs
  • Loading branch information
pstavirs committed Apr 10, 2010
1 parent 2af8321 commit 836ed6e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions version.pri
Original file line number Diff line number Diff line change
@@ -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 = <rev-hash>
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

Expand Down

0 comments on commit 836ed6e

Please sign in to comment.