Commit 54003e1a authored by Måns Rullgård's avatar Måns Rullgård
Browse files

get svn version when using separate build tree

Originally committed as revision 5539 to svn://
parent 76a77ff2
......@@ -92,7 +92,7 @@ ffplay_g$(EXESUF): ffplay.o cmdutils.o .libs
.PHONY: version.h
output_example$(EXESUF): output_example.o .libs
$(CC) $(FFLIBDIRS) $(LDFLAGS) -o $@ output_example.o $(FFLIBS) $(EXTRALIBS)
svn_revision=`svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
svn_revision=`cd "$1" && svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
test $svn_revision || svn_revision=UNKNOWN
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment