Changeset [1259be6372e16a60698e1c49d78247a38502ef0a] by Thell Fowler
October 23rd, 2009 @ 05:18 PM
project files: introduce version info generator
-
Modifies all VC 8 & 9 build configurations in the notepadplus project files to use a pre-build event to generate entries for resource VERSIONINFO and include fileversioninfo.h which is built from the NPPCR-VERSION-GEN.bat script. The fileversioninfo.h is included in the project file but added to .gitignore and not tracked.
-
The NPPCR-VERSION-GEN.bat uses three possible sources:
- NPPCR-VERSION-FILE (which should be included with packaged releases)
- Default value within the script itself (updated when new tags are created)
- git-describe
The version information generated creates a file version string with the format: Major.Minor.Stage.Revision
Stage values: 0=alpha, 1=beta, 2=release candidate, 3=release
The revision value is the number of commits since the '0' tag of the current stage. So, if a topic branch is 3 commits ahead of vX.Y.Z-rc1 which is 30 commits ahead of xX.Y.Z-rc0 then the Revision value would be 33.
Builds created by while working with a dirty directory tree will have the version string amended with '-dirty'.
VS_FF_PRIVATE, VS_FF_PATCHED, VS_FF_DEBUG, VS_FF_PRERELEASE are set accordingly when git is available, as well as Comment and Private Build strings.
[#12 stage:needs_ack responsible:npp-community tagged:versioning]
Signed-off-by: Thell Fowler git@tbfowler.name
http://github.com/almostautomated/npp-community/commit/1259be6372e1...
Committed by Thell Fowler
- A NPPCR-VERSION-FILE
- A PowerEditor/src/.gitignore
- A scripts/NPPCR-VERSION-GEN.bat
- M PowerEditor/src/Notepad_plus.rc
- M PowerEditor/visual.net/notepadPlus.8.vcproj
- M PowerEditor/visual.net/notepadPlus.9.vcproj
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Notepad++ Community Release