Build Revision Info Added
Travis now overwrites RevisionIdent.h to place a commit reference into the Build Info of the AboutDialog I also added .opensdf to .gitignore.
This commit is contained in:
parent
7bcba2a0b6
commit
291a465a76
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -15,6 +15,7 @@
|
|||
*.log
|
||||
*.tlog
|
||||
*.ipch
|
||||
*.opensdf
|
||||
|
||||
# Precompiled Headers
|
||||
*.gch
|
||||
|
@ -40,3 +41,5 @@
|
|||
*.out
|
||||
*.app
|
||||
win/resetPrefs.txt
|
||||
src/RevisionIdent.h
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -y libwxgtk2.8-dev
|
||||
- git show -s --format="wxT(\"<a href=\\\"https://github.com/audacity/audacity/commit/%H\\\">%h</a> of %cd\")"
|
||||
- git show -s --format="wxT(\"<a href=\\\"https://github.com/audacity/audacity/commit/%H\\\">%h</a> of %cd\")" > ./src/RevisionIdent.h
|
||||
language: cpp
|
||||
compiler:
|
||||
- gcc
|
||||
|
|
|
@ -549,6 +549,10 @@ void AboutDialog::PopulateInformationPage( ShuttleGui & S )
|
|||
// Current date
|
||||
AddBuildinfoRow(&informationStr, _("Program build date: "), __TDATE__);
|
||||
|
||||
AddBuildinfoRow(&informationStr, _("Commit Id:"),
|
||||
#include "RevisionIdent.h"
|
||||
);
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
AddBuildinfoRow(&informationStr, _("Build type:"), _("Debug build"));
|
||||
#else
|
||||
|
|
28
src/RevisionIdent.h
Normal file
28
src/RevisionIdent.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
Audacity(R) is copyright (c) 1999-2015 Audacity Team.
|
||||
License: GPL v2. See License.txt.
|
||||
|
||||
RevisionIdent.h
|
||||
|
||||
|
||||
********************************************************************//*!
|
||||
|
||||
\file RevisionIdent.h
|
||||
|
||||
This entire file will be replaced by the revision identifier string
|
||||
based on the branch SHA when the automated build system builds
|
||||
Audacity. That striing will look something like:
|
||||
|
||||
"<a href=\"https://github.com/audacity/audacity/commit/
|
||||
7f2e83995596367aeed69f3086ac9fd2039795a3\">7f2e839</a> of
|
||||
Thu Apr 9 20:03:11 2015 +0100"
|
||||
|
||||
*//********************************************************************/
|
||||
|
||||
// The string below is what you get if
|
||||
// the build system does not replace this file.
|
||||
|
||||
wxT("No revision identifier was provided")
|
||||
|
|
@ -529,6 +529,7 @@
|
|||
<ClInclude Include="..\..\..\src\import\MultiFormatReader.h" />
|
||||
<ClInclude Include="..\..\..\src\import\SpecPowerMeter.h" />
|
||||
<ClInclude Include="..\..\..\src\ModuleManager.h" />
|
||||
<ClInclude Include="..\..\..\src\RevisionIdent.h" />
|
||||
<ClInclude Include="..\..\..\src\SseMathFuncs.h" />
|
||||
<ClInclude Include="..\..\..\src\toolbars\SpectralSelectionBar.h" />
|
||||
<ClInclude Include="..\..\..\src\toolbars\SpectralSelectionBarListener.h" />
|
||||
|
|
|
@ -1670,6 +1670,9 @@
|
|||
<ClInclude Include="..\..\..\src\AudioIOListener.h">
|
||||
<Filter>src</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\RevisionIdent.h">
|
||||
<Filter>src</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="..\..\audacity.ico">
|
||||
|
@ -1684,15 +1687,6 @@
|
|||
<ItemGroup>
|
||||
<None Include="..\..\ny.rules" />
|
||||
<None Include="..\..\po.rules" />
|
||||
<None Include="..\..\..\nyquist\test.lsp">
|
||||
<Filter>nyquist</Filter>
|
||||
</None>
|
||||
<None Include="..\..\..\nyquist\upic.sal">
|
||||
<Filter>nyquist</Filter>
|
||||
</None>
|
||||
<None Include="..\..\..\nyquist\velocity.lsp">
|
||||
<Filter>nyquist</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<CustomBuild Include="..\..\..\nyquist\rawwaves\mand1.raw">
|
||||
|
@ -1812,6 +1806,9 @@
|
|||
<CustomBuild Include="..\..\..\nyquist\xm.lsp">
|
||||
<Filter>nyquist</Filter>
|
||||
</CustomBuild>
|
||||
<CustomBuild Include="..\..\..\nyquist\test.lsp" />
|
||||
<CustomBuild Include="..\..\..\nyquist\upic.sal" />
|
||||
<CustomBuild Include="..\..\..\nyquist\velocity.lsp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<copy Include="..\..\..\plug-ins\adjustable-fade.ny">
|
||||
|
|
Loading…
Reference in New Issue
Block a user