[build] Add a variable for the assembly version number

Assembly version numbers can only have numbers and dots, so we need to
differentiate those from the package version, which can be something
like "0.2-alpha1".
We just need to make sure both values are updated when appropriate.
This commit is contained in:
Bertrand Lorentz 2010-08-03 10:40:10 +02:00
parent e10c251ecf
commit 3e74ff0f7a
2 changed files with 11 additions and 3 deletions

View file

@ -7,5 +7,5 @@
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("@VERSION@")]
[assembly: AssemblyVersion("@ASM_VERSION@")]
[assembly: AssemblyTitle ("SparkleShare")]

View file

@ -1,10 +1,18 @@
dnl Warning: This is an automatically generated file, do not edit!
dnl Process this file with autoconf to produce a configure script.
m4_define([sparkleshare_version],
[0.2-alpha1])
m4_define([sparkleshare_asm_version],
[0.2])
AC_PREREQ([2.54])
AC_INIT([SparkleShare], [0.1])
AC_INIT([SparkleShare], sparkleshare_version)
AM_INIT_AUTOMAKE([1.11 dist-bzip2 dist-zip foreign])
AM_MAINTAINER_MODE
dnl Export Version Info
AC_SUBST([ASM_VERSION], [sparkleshare_asm_version])
dnl pkg-config
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then