ekiga r6967 - in trunk: . src
- From: mschneid svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6967 - in trunk: . src
- Date: Sun, 14 Sep 2008 12:45:29 +0000 (UTC)
Author: mschneid
Date: Sun Sep 14 12:45:29 2008
New Revision: 6967
URL: http://svn.gnome.org/viewvc/ekiga?rev=6967&view=rev
Log:
Add support for tarball builds that dont have
the .svn dirs. Allow packagers to specify a revision
Modified:
trunk/ChangeLog
trunk/src/Makefile.am
Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Sun Sep 14 12:45:29 2008
@@ -162,7 +162,16 @@
SVN_REVISION=$(shell head ../.svn/entries -n11 2>/dev/null | tail -n1)
CACHED_REVISION=$(shell cat revision.h 2>/dev/null | cut -c24-)
-$(shell if test "x$(SVN_REVISION)" != "x$(CACHED_REVISION)"; then echo "#define EKIGA_REVISION $(SVN_REVISION)" > revision.h; fi)
+
+$(shell if test -e "../.svn/entries"; then \
+ if test "x$(SVN_REVISION)" != "x$(CACHED_REVISION)"; then \
+ echo "#define EKIGA_REVISION $(SVN_REVISION)" > revision.h; \
+ fi \
+ else \
+ if !(test -e "./revision.h"); then\
+ echo "#define EKIGA_REVISION \"unknown\"" > revision.h; \
+ fi \
+ fi)
AM_CXXFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS) $(GNOME_CFLAGS) $(DBUS_CFLAGS) $(BONOBO_CFLAGS) $(OPAL_CFLAGS) $(PTLIB_CFLAGS) $(SIGC_CFLAGS) $(XML_CFLAGS) $(NOTIFY_CFLAGS)
AM_LIBS = $(GTK_LIBS) $(GLIB_LIBS) $(GNOME_LIBS) $(DBUS_LIBS) $(BONOBO_LIBS) $(OPAL_LIBS) $(PTLIB_LIBS) $(SIGC_LIBS) $(XML_LIBS) $(NOTIFY_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]