From 8722a24c6929366ecadd91ba253538dea2c23065 Mon Sep 17 00:00:00 2001 From: pp Date: Thu, 13 Mar 2008 21:30:48 +0000 Subject: - automatically add svn revision number to about window git-svn-id: https://lampka.siedziba.pl:790/svn/repos/lingot-win32@302 455248ca-bdda-0310-9134-f4ebb693071a --- src/lingot-mainframe.c | 2 +- win32-cross-build.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lingot-mainframe.c b/src/lingot-mainframe.c index 5fcfdad..1fa61bc 100644 --- a/src/lingot-mainframe.c +++ b/src/lingot-mainframe.c @@ -99,7 +99,7 @@ void lingot_mainframe_callback_about(GtkWidget* w, LingotMainFrame* frame) { gtk_show_about_dialog(NULL, "name", "Lingot", - "version", VERSION, + "version", VERSION REV, "copyright", "\xC2\xA9 2004-2007 Ibán Cereijo Graña\n\xC2\xA9 2004-2007 Jairo Chapela Martínez", "comments", _("Accurate and easy to use musical instrument tuner"), "authors", authors, diff --git a/win32-cross-build.sh b/win32-cross-build.sh index 41c290c..9c2e74b 100755 --- a/win32-cross-build.sh +++ b/win32-cross-build.sh @@ -1,5 +1,8 @@ #!/bin/sh -export CFLAGS='-I../../portaudio/include/ -I../../pthreads-w32-2-8-0-release/ -DPORTAUDIO' +STAT=$(svn status) +test "x$STAT" == "x" || PLUS="+" +REV=$(svn info | grep Revision | cut -d' ' -f2)$PLUS +export CFLAGS="-I../../portaudio/include/ -I../../pthreads-w32-2-8-0-release/ -DPORTAUDIO -DREV='\"r$REV\"'" export LDFLAGS='-L../../pthreads-w32-2-8-0-release -L../../portaudio/lib/.libs' ./configure --host=i386-mingw32 --enable-nls -- cgit v1.2.3