Please sign in to comment.
Improve handling of mscore/revision.h
Added a default mscore/revision.h containing "Unknown" as the revision number (mscore/revision.h remains in .gitignore). Removed the dependency on "revision" in the Makefiles. Now "make revision" must be done manually if required. Added sample post-checkout git hook to allow git automatically to update mscore/revision.h when doing a git checkout. If installed, this removes the need to do "make revision" manually.
- Loading branch information...
Showing with 19 additions and 6 deletions.
|@@ -0,0 +1,10 @@|
|+Copy the post-checkout file from build/git/hooks/ into .git/hooks/ in order|
|+for git to update mscore/revision.h with the branch number automatically when|
|+$ cp -p build/git/hooks/post-checkout .git/hooks/|
|+This only needs doing once, and then removes the need to do "make revision"|
|+manually for setting the correct revision number after doing a checkout.|
|+This works for Linux, Windows (MinGW) and OSX.|
|@@ -0,0 +1,2 @@|
|+git rev-parse --short HEAD >mscore/revision.h|