[Freeciv-Dev] (PR#4712) [Patch] Build data/Freeciv with correct version
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=4712 >
Let autoconf to build data/Freeciv with correct version string as it
already knows it.
Rename data/Freeciv as data/Freeciv.in prior to applying this patch.
As a side effect, this file is now in builddir and no longer in
srcdir. This probably means another thing to worry about in #9852.
- Caz
diff -Nurd -X.diff_ignore freeciv/client/gui-xaw/Makefile.am
freeciv/client/gui-xaw/Makefile.am
--- freeciv/client/gui-xaw/Makefile.am 2004-08-27 15:49:29.609375000 +0300
+++ freeciv/client/gui-xaw/Makefile.am 2004-08-28 20:32:34.171875000 +0300
@@ -11,11 +11,11 @@
BUILT_SOURCES = Freeciv.h
CLEANFILES = Freeciv.h
-Freeciv.h: $(top_srcdir)/data/Freeciv
+Freeciv.h: $(top_builddir)/data/Freeciv
echo '/**************************************************/' > Freeciv.h
echo '/* DO NOT EDIT THIS FILE, EDIT ../../data/Freeciv */' >> Freeciv.h
echo '/**************************************************/' >> Freeciv.h
- $(srcdir)/ad2c $(top_srcdir)/data/Freeciv >> Freeciv.h
+ $(srcdir)/ad2c $(top_builddir)/data/Freeciv >> Freeciv.h
libguiclient_a_DEPENDENCIES = ad2c
diff -Nurd -X.diff_ignore freeciv/configure.ac freeciv/configure.ac
--- freeciv/configure.ac 2004-08-27 15:49:35.562500000 +0300
+++ freeciv/configure.ac 2004-08-28 20:53:14.406250000 +0300
@@ -651,6 +651,7 @@
doc/ja/Makefile
doc/nl/Makefile
doc/sv/Makefile
+ data/Freeciv
undep.sh])
AC_CONFIG_FILES([civ], [chmod +x civ])
AC_CONFIG_FILES([ser], [chmod +x ser])
diff -Nurd -X.diff_ignore freeciv/configure.in freeciv/configure.in
--- freeciv/configure.in 2004-08-27 15:49:35.578125000 +0300
+++ freeciv/configure.in 2004-08-28 20:53:31.890625000 +0300
@@ -648,6 +648,7 @@
doc/ja/Makefile
doc/nl/Makefile
doc/sv/Makefile
+ data/Freeciv
civ
ser
undep.sh,
diff -Nurd -X.diff_ignore freeciv/data/Freeciv.in freeciv/data/Freeciv.in
--- freeciv/data/Freeciv.in 2004-08-27 15:49:37.562500000 +0300
+++ freeciv/data/Freeciv.in 2004-08-28 20:26:36.546875000 +0300
@@ -5,7 +5,7 @@
! none widgets resources
! gotAppDefFile MUST be the first entry!
Freeciv*gotAppDefFile: True
-Freeciv*version: 1.14.99-devel
+Freeciv*version: @VERSION@
Freeciv.title: Freeciv
Freeciv.iconName: Freeciv
Freeciv*borderColor: black
diff -Nurd -X.diff_ignore freeciv/version.in freeciv/version.in
--- freeciv/version.in 2004-08-27 15:50:14.968750000 +0300
+++ freeciv/version.in 2004-08-28 20:34:56.500000000 +0300
@@ -6,8 +6,8 @@
FREECIV_VERSION_COMMENT(" language used. Don't add comments ")
FREECIV_VERSION_COMMENT(" specific to some language into this file. ")
-FREECIV_VERSION_COMMENT(" For now version information in data/Freeciv ")
-FREECIV_VERSION_COMMENT(" and common/version.h ")
+FREECIV_VERSION_COMMENT(" For now version information in ")
+FREECIV_VERSION_COMMENT(" common/version.h ")
FREECIV_VERSION_COMMENT(" must be updated manually when ever this file ")
FREECIV_VERSION_COMMENT(" changes. ")
|
|