From 5afe726aeb478642b4e5dc7d182dbb96af214a81 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sun, 7 May 2006 07:35:43 +0000 Subject: [PATCH] Automatically versionize when building --- .../{AssemblyInfo.cs => AssemblyInfo.cs.templ} | 12 ++++++------ win32/FireflyConfig/FireflyConfig.csproj | 2 +- win32/config.h.templ | 6 ++++-- win32/mt-daapd.vcproj | 6 ++++-- win32/nsi/{mt-daapd.nsi => mt-daapd.nsi.templ} | 5 ++++- win32/versionize.bat | 16 ++++++++++++++++ 6 files changed, 35 insertions(+), 12 deletions(-) rename win32/FireflyConfig/{AssemblyInfo.cs => AssemblyInfo.cs.templ} (85%) rename win32/nsi/{mt-daapd.nsi => mt-daapd.nsi.templ} (99%) create mode 100644 win32/versionize.bat diff --git a/win32/FireflyConfig/AssemblyInfo.cs b/win32/FireflyConfig/AssemblyInfo.cs.templ similarity index 85% rename from win32/FireflyConfig/AssemblyInfo.cs rename to win32/FireflyConfig/AssemblyInfo.cs.templ index 177a4f0e..3354c655 100644 --- a/win32/FireflyConfig/AssemblyInfo.cs +++ b/win32/FireflyConfig/AssemblyInfo.cs.templ @@ -6,12 +6,12 @@ using System.Runtime.CompilerServices; // set of attributes. Change these attribute values to modify the information // associated with an assembly. // -[assembly: AssemblyTitle("")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyTitle("Firefly Configurator")] +[assembly: AssemblyDescription("Configuration Program for Firefly Media Server")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] +[assembly: AssemblyCompany("Ron Pedde")] +[assembly: AssemblyProduct("FireflyConfig")] +[assembly: AssemblyCopyright("Copyright (C) 2006 Ron Pedde")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -26,7 +26,7 @@ using System.Runtime.CompilerServices; // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.$WCREV$")] // // In order to sign your assembly you must specify a key to use. Refer to the diff --git a/win32/FireflyConfig/FireflyConfig.csproj b/win32/FireflyConfig/FireflyConfig.csproj index e14a4b2c..fa4fa1fe 100644 --- a/win32/FireflyConfig/FireflyConfig.csproj +++ b/win32/FireflyConfig/FireflyConfig.csproj @@ -16,7 +16,7 @@ DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "WinExe" - PreBuildEvent = "" + PreBuildEvent = "..\..\..\versionize.bat" PostBuildEvent = "" RootNamespace = "FireflyConfig" RunPostBuildEvent = "OnBuildSuccess" diff --git a/win32/config.h.templ b/win32/config.h.templ index 4f032933..26c17918 100644 --- a/win32/config.h.templ +++ b/win32/config.h.templ @@ -116,7 +116,7 @@ /* #undef HAVE_VORBIS_CODEC_H */ /* Name of package */ -#define PACKAGE "mt-daapd" +#define PACKAGE "Firefly Media Server" /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "" @@ -149,6 +149,8 @@ #define HAVE_SQL /* Version number of package */ -#define VERSION "0.3.0" +#define VERSION "svn-$WCREV$" +#define BUILD_DATE "$WCNOW$" +#define REPO_DATE "$WCDATE$" #include "win32.h" diff --git a/win32/mt-daapd.vcproj b/win32/mt-daapd.vcproj index 41e6d749..e935ab2f 100644 --- a/win32/mt-daapd.vcproj +++ b/win32/mt-daapd.vcproj @@ -47,7 +47,8 @@ + Name="VCPreBuildEventTool" + CommandLine="versionize.bat"/> + Name="VCPreBuildEventTool" + CommandLine="versionize.bat"/>