Changeset [7ed7e5ad04e21de4c0365eb16fe73bb7b480dca7] by Thell Fowler
October 28th, 2009 @ 09:24 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:
- A packaged release VERSION file.
 - 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 with stage values of:
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 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.
 - 
When git is available multiple builds of the same commit exit early based on the value stored in an untracked tmp file. This feature can be skipped using the --force argument.
 
[#12 state:needs_ack responsible:npp-community tagged:versioning]
Signed-off-by: Thell Fowler git@tbfowler.name
http://github.com/almostautomated/npp-community/commit/7ed7e5ad04e2...
Committed by Thell Fowler
- A NPPCR-VERSION-FILE
 - A PowerEditor/src/.gitignore
 - A scripts/NPPCR-VERSION-GEN.bat
 - A tmp/.gitignore
 - 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