summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b2891d3)
raw | patch | inline | side by side (parent: b2891d3)
author | JazzyNico <nicoduf@yahoo.fr> | |
Sat, 2 Jan 2010 10:03:58 +0000 (11:03 +0100) | ||
committer | JazzyNico <nicoduf@yahoo.fr> | |
Sat, 2 Jan 2010 10:03:58 +0000 (11:03 +0100) |
acinclude.m4 | patch | blob | history | |
configure.ac | patch | blob | history | |
m4/ink_bzr_snapshot_build.m4 | [new file with mode: 0644] | patch | blob |
m4/ink_svn_snapshot_build.m4 | [deleted file] | patch | blob | history |
src/Makefile.am | patch | blob | history |
diff --git a/acinclude.m4 b/acinclude.m4
index 61148f6b4b34b8f08e5316829f6229fe5631c5ca..50ede11c2cf0340210083e79c96834bae41c86be 100644 (file)
--- a/acinclude.m4
+++ b/acinclude.m4
m4_include([m4/ac_define_dir.m4])
m4_include([m4/ax_openmp.m4])
m4_include([m4/relaytool.m4])
-m4_include([m4/ink_svn_snapshot_build.m4])
+m4_include([m4/ink_bzr_snapshot_build.m4])
diff --git a/configure.ac b/configure.ac
index 32990943b03eeb6eecf5ebebd97a0ddf76f80774..136bb5c312d05ab5bc2267ea2a58acaaec6e5f5c 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_PROG_RANLIB
AC_PROG_INTLTOOL(0.22)
AC_HEADER_STDC
-INK_SVN_SNAPSHOT_BUILD
+INK_BZR_SNAPSHOT_BUILD
dnl If automake 1.11 shave the output to look nice
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
diff --git a/m4/ink_bzr_snapshot_build.m4 b/m4/ink_bzr_snapshot_build.m4
--- /dev/null
@@ -0,0 +1,14 @@
+# Check for BZR snapshot build
+# (c) 2009 Krzysztof Kosiński
+# Released under GNU GPL; see the file COPYING for more information
+
+AC_DEFUN([INK_BZR_SNAPSHOT_BUILD],
+[
+ AC_CACHE_CHECK([for BZR snapshot build], ink_cv_bzr_snapshot_build,
+ [ink_cv_bzr_snapshot_build=no
+ if which bzr > /dev/null && test -e $srcdir/.bzr/branch/last-revision; then
+ ink_cv_bzr_snapshot_build=yes
+ fi
+ ])
+ AM_CONDITIONAL([USE_BZR_VERSION], [test "x$ink_cv_bzr_snapshot_build" = "xyes"])
+])
diff --git a/m4/ink_svn_snapshot_build.m4 b/m4/ink_svn_snapshot_build.m4
+++ /dev/null
@@ -1,14 +0,0 @@
-# Check for SVN snapshot build
-# (c) 2009 Krzysztof Kosiński
-# Released under GNU GPL; see the file COPYING for more information
-
-AC_DEFUN([INK_SVN_SNAPSHOT_BUILD],
-[
- AC_CACHE_CHECK([for SVN snapshot build], ink_cv_svn_snapshot_build,
- [ink_cv_svn_snapshot_build=no
- if which svn > /dev/null && test -e $srcdir/.svn/entries; then
- ink_cv_svn_snapshot_build=yes
- fi
- ])
- AM_CONDITIONAL([USE_SVN_VERSION], [test "x$ink_cv_svn_snapshot_build" = "xyes"])
-])
diff --git a/src/Makefile.am b/src/Makefile.am
index cbd22144d2130a0f1c2fb9205c0abfbca8497db1..15c7cb1b1c1bd60647ee1a63cf76e7910b167793 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
libinkversion_a_SOURCES = inkscape-version.cpp inkscape-version.h
-if USE_SVN_VERSION
+if USE_BZR_VERSION
inkscape_version_deps = $(top_srcdir)/.bzr/branch/last-revision
endif
# someone updates the BZR working directory.
inkscape-version.cpp: $(inkscape_version_deps)
VER_PREFIX="$(VERSION)";\
- VER_BZRREV=" r`bzr log -r '-1..' | sed -n -e '/^revno:/s/revno: \(.*\)/\1/p'`"; \
+ VER_BZRREV=" r`bzr revno`"; \
if test ! -z "`bzr status -S -V $(srcdir)`"; then \
VER_CUSTOM=" custom"; \
fi; \