summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2009-12-28 13:53:22 +0000
committerJazzyNico <nicoduf@yahoo.fr>2009-12-28 13:53:22 +0000
commitd9c38467f7423dfd5e1353fa5820b9cd2970b72d (patch)
tree50e62cf08e3ae5483f39c9448eae6af6d9cc5c2a /src
parentUse correct text anchor for vertical text and when aligning or distributing (diff)
downloadinkscape-d9c38467f7423dfd5e1353fa5820b9cd2970b72d.tar.gz
inkscape-d9c38467f7423dfd5e1353fa5820b9cd2970b72d.zip
Add bzr revision in the About screen
(bzr r8857.1.6)
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 30d1e5f42..cbd22144d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -226,20 +226,18 @@ inkview_LDADD = $(all_libs)
libinkversion_a_SOURCES = inkscape-version.cpp inkscape-version.h
if USE_SVN_VERSION
-inkscape_version_deps = $(top_srcdir)/.svn/entries
+inkscape_version_deps = $(top_srcdir)/.bzr/branch/last-revision
endif
-# If this is an SVN snapshot build, regenerate this file every time
-# someone updates the SVN working directory.
+# If this is an BZR snapshot build, regenerate this file every time
+# someone updates the BZR working directory.
inkscape-version.cpp: $(inkscape_version_deps)
- VER_PREFIX="$(VERSION)"; \
- if test -x "$(srcdir)/.svn" -a ! -z `which svn`; then \
- VER_SVNREV=" r`LANG=en svn info $(srcdir) | sed -n -e '/^Revision:/s/Revision: \(.*\)/\1/p'`"; \
- if test ! -z "`svn status -q $(srcdir)`"; then \
- VER_CUSTOM=" custom"; \
- fi; \
+ VER_PREFIX="$(VERSION)";\
+ VER_BZRREV=" r`bzr log -r '-1..' | sed -n -e '/^revno:/s/revno: \(.*\)/\1/p'`"; \
+ if test ! -z "`bzr status -S -V $(srcdir)`"; then \
+ VER_CUSTOM=" custom"; \
fi; \
- VERSION="$$VER_PREFIX$$VER_SVNREV$$VER_CUSTOM"; \
+ VERSION="$$VER_PREFIX$$VER_BZRREV$$VER_CUSTOM"; \
echo "namespace Inkscape { " \
"char const *version_string = \"$$VERSION\"; " \
"}" > inkscape-version.new.cpp; \