summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xguess-rev.sh3
-rw-r--r--src/Makefile.am2
2 files changed, 2 insertions, 3 deletions
diff --git a/guess-rev.sh b/guess-rev.sh
index c561be56..aee6770d 100755
--- a/guess-rev.sh
+++ b/guess-rev.sh
@@ -3,7 +3,6 @@
REV=unknown
-which svnversion > /dev/null 2>&1 && REV=`svnversion -n`
+which svnversion > /dev/null 2>&1 && REV=`svnversion -n "$1"`
echo -n $REV
-
diff --git a/src/Makefile.am b/src/Makefile.am
index 30b67f26..a4995794 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -21,7 +21,7 @@ openocd_CPPFLAGS = \
if RELEASE
openocd_CPPFLAGS += -DRELSTR=\"Release\" -DPKGBLDREV=\"\"
else
-openocd_CPPFLAGS += -DRELSTR=\"svn:\" -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh`\"
+openocd_CPPFLAGS += -DRELSTR=\"svn:\" -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
endif
# add default CPPFLAGS