[gimp] use computed copyright year in Windows rc files
- From: Nils Philippsen <nphilipp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] use computed copyright year in Windows rc files
- Date: Tue, 28 Sep 2010 15:58:43 +0000 (UTC)
commit 0c0470f9d6fc6d5ae39f50cf956f5b35246f20a9
Author: Nils Philippsen <nils redhat com>
Date: Tue Sep 28 17:56:16 2010 +0200
use computed copyright year in Windows rc files
build/windows/gimp.rc.in | 4 +++-
build/windows/gimprc.rule | 1 +
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/build/windows/gimp.rc.in b/build/windows/gimp.rc.in
index 49917d8..35c2b7d 100644
--- a/build/windows/gimp.rc.in
+++ b/build/windows/gimp.rc.in
@@ -1,7 +1,9 @@
#include <winver.h>
+#include "git-version.h"
#define _QUOTE(x) #x
#define QUOTE(x) _QUOTE(x)
+#define CONCAT(x,y) x ## y
#define VER_COMPANYNAME_STR "Spencer Kimball, Peter Mattis and the GIMP Development Team"
@@ -16,7 +18,7 @@
#define VER_INTERNALNAME_STR QUOTE(INTERNALNAME_STR)
#define VER_ORIGINALFILENAME_STR QUOTE(ORIGINALFILENAME_STR)
-#define VER_LEGALCOPYRIGHT_STR "Copyright © 1995-2010"
+#define VER_LEGALCOPYRIGHT_STR CONCAT("Copyright © 1995-", GIMP_GIT_LAST_COMMIT_YEAR)
#ifndef DEBUG
#define VER_DEBUG 0
diff --git a/build/windows/gimprc.rule b/build/windows/gimprc.rule
index 6377d72..19a99b5 100644
--- a/build/windows/gimprc.rule
+++ b/build/windows/gimprc.rule
@@ -3,4 +3,5 @@
$(WINDRES) --define ORIGINALFILENAME_STR="$*$(EXEEXT)" \
--define INTERNALNAME_STR="$*" \
--define TOP_SRCDIR="$(top_srcdir)" \
+ -I$(top_srcdir)/app \
$< $@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]