Mercurial > audlegacy
changeset 530:1947144093bc trunk
[svn] When running SVN, make a note of the SVN version. The SVN version is stored in build_stamp.c.
./audacious --version will display it.
author | nenolod |
---|---|
date | Fri, 27 Jan 2006 20:31:53 -0800 |
parents | 91ff72a52821 |
children | b4573ff1f261 |
files | audacious/Makefile.am audacious/build_stamp.h audacious/main.c |
diffstat | 3 files changed, 25 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/audacious/Makefile.am Fri Jan 27 20:09:05 2006 -0800 +++ b/audacious/Makefile.am Fri Jan 27 20:31:53 2006 -0800 @@ -21,6 +21,7 @@ -I$(top_srcdir)/intl audacious_SOURCES = \ + build_stamp.c build_stamp.h \ genevent.c genevent.h \ skin.c skin.h \ util.c util.h \ @@ -91,3 +92,17 @@ pixmaps.h: $(embedded_icons) gdk-pixbuf-csource --stream --build-list `cat build.list` > pixmaps.h + +build_stamp.c: + if [ -d .svn ] || [ ! -f build_stamp.h ]; then \ + ( \ + echo '/* SVN repository version.'; \ + echo ' * This auto-generated file must not be included in SVN; but must'; \ + echo ' * be included in release tarballs.'; \ + echo ' */'; \ + echo '#include <glib.h>'; \ + echo -n 'const gchar *svn_stamp = "'; \ + (cd ..; svnversion -n .); \ + echo '";' \ + ) > build_stamp.c; \ + fi;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audacious/build_stamp.h Fri Jan 27 20:31:53 2006 -0800 @@ -0,0 +1,8 @@ +#ifndef BUILD_STAMP_H +#define BUILD_STAMP_H + +#include <glib.h> + +extern const gchar *svn_stamp; + +#endif
--- a/audacious/main.c Fri Jan 27 20:09:05 2006 -0800 +++ b/audacious/main.c Fri Jan 27 20:31:53 2006 -0800 @@ -73,6 +73,7 @@ #include "skinwin.h" #include "util.h" #include "visualization.h" +#include "build_stamp.h" #include "pixmaps.h" #include "images/audacious_player.xpm" @@ -335,7 +336,7 @@ { GSList *features; - g_printf("%s %s", _(application_name), VERSION); + g_printf("%s %s [%s]", _(application_name), VERSION, svn_stamp); features = get_feature_list();