summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac6
-rw-r--r--enlightenment.pc.in1
-rw-r--r--src/bin/Makefile.am3
-rw-r--r--src/bin/e_about.c3
-rw-r--r--svnrev.h.in1
6 files changed, 13 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 0d7416416..ebbb3aa49 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,7 @@ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
7 enlightenment.spec enlightenment.pc ABOUT-NLS* \ 7 enlightenment.spec enlightenment.pc ABOUT-NLS* \
8 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 8 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2
9 9
10EXTRA_DIST = config.rpath README AUTHORS COPYING COPYING-PLAIN \ 10EXTRA_DIST = svnrev.h.in config.rpath README AUTHORS COPYING COPYING-PLAIN \
11 enlightenment.spec.in enlightenment.spec enlightenment.pc 11 enlightenment.spec.in enlightenment.spec enlightenment.pc
12 12
13filesdir = $(datadir)/enlightenment/ 13filesdir = $(datadir)/enlightenment/
diff --git a/configure.ac b/configure.ac
index 759875939..f4dddf8c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -560,7 +560,13 @@ AC_E_OPTIONAL_MODULE([everything-windows], true)
560AC_E_OPTIONAL_MODULE([systray], true) 560AC_E_OPTIONAL_MODULE([systray], true)
561AC_E_OPTIONAL_MODULE([comp], true) 561AC_E_OPTIONAL_MODULE([comp], true)
562 562
563SVNVERSION=`which svnversion`
564SVNREV="UNKNOWN"
565if test -n "$SVNVERSION"; then SVNREV=`$SVNVERSION -n .`; fi
566AC_SUBST(SVNREV)
567
563AC_OUTPUT([ 568AC_OUTPUT([
569svnrev.h
564Makefile 570Makefile
565enlightenment.spec 571enlightenment.spec
566enlightenment.pc 572enlightenment.pc
diff --git a/enlightenment.pc.in b/enlightenment.pc.in
index 069463681..f66fcb5ff 100644
--- a/enlightenment.pc.in
+++ b/enlightenment.pc.in
@@ -5,6 +5,7 @@ includedir=@includedir@/@PACKAGE@
5modules=@libdir@/@PACKAGE@/modules 5modules=@libdir@/@PACKAGE@/modules
6config_apps=@prefix@/share/@PACKAGE@/config-apps 6config_apps=@prefix@/share/@PACKAGE@/config-apps
7release=@release@ 7release=@release@
8svnrev=@SVNREV@
8 9
9Name: enlightenment 10Name: enlightenment
10Description: Enlightenmnt Window Manager 11Description: Enlightenmnt Window Manager
diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am
index aa7f35107..a2f5c9a37 100644
--- a/src/bin/Makefile.am
+++ b/src/bin/Makefile.am
@@ -1,6 +1,7 @@
1MAINTAINERCLEANFILES = Makefile.in 1MAINTAINERCLEANFILES = Makefile.in
2 2
3INCLUDES = -I$(top_srcdir) \ 3INCLUDES = -I$(top_builddir) \
4 -I$(top_srcdir) \
4 -I$(top_srcdir)/src/bin \ 5 -I$(top_srcdir)/src/bin \
5 -I$(top_srcdir)/src/lib \ 6 -I$(top_srcdir)/src/lib \
6 @e_cflags@ \ 7 @e_cflags@ \
diff --git a/src/bin/e_about.c b/src/bin/e_about.c
index b5dde1e64..6c811b431 100644
--- a/src/bin/e_about.c
+++ b/src/bin/e_about.c
@@ -2,6 +2,7 @@
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */ 3 */
4#include "e.h" 4#include "e.h"
5#include "svnrev.h"
5 6
6/* local subsystem functions */ 7/* local subsystem functions */
7 8
@@ -19,7 +20,7 @@ e_about_new(E_Container *con)
19 e_obj_dialog_obj_theme_set(od, "base/theme/about", "e/widgets/about/main"); 20 e_obj_dialog_obj_theme_set(od, "base/theme/about", "e/widgets/about/main");
20 e_obj_dialog_obj_part_text_set(od, "e.text.label", _("Close")); 21 e_obj_dialog_obj_part_text_set(od, "e.text.label", _("Close"));
21 e_obj_dialog_obj_part_text_set(od, "e.text.title", _("Enlightenment")); 22 e_obj_dialog_obj_part_text_set(od, "e.text.title", _("Enlightenment"));
22 e_obj_dialog_obj_part_text_set(od, "e.text.version", VERSION); 23 e_obj_dialog_obj_part_text_set(od, "e.text.version", VERSION"/"SVNREV);
23 e_obj_dialog_obj_part_text_set 24 e_obj_dialog_obj_part_text_set
24 (od, "e.textblock.about", 25 (od, "e.textblock.about",
25 _( 26 _(
diff --git a/svnrev.h.in b/svnrev.h.in
new file mode 100644
index 000000000..0bb9f39b5
--- /dev/null
+++ b/svnrev.h.in
@@ -0,0 +1 @@
#define SVNREV "@SVNREV@"