mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
get svn version when using separate build tree
Originally committed as revision 5539 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
76a77ff291
commit
54003e1a70
2
Makefile
2
Makefile
@ -92,7 +92,7 @@ ffplay_g$(EXESUF): ffplay.o cmdutils.o .libs
|
|||||||
|
|
||||||
.PHONY: version.h
|
.PHONY: version.h
|
||||||
version.h:
|
version.h:
|
||||||
$(SRC_PATH)/version.sh
|
$(SRC_PATH)/version.sh "$(SRC_PATH)"
|
||||||
|
|
||||||
output_example$(EXESUF): output_example.o .libs
|
output_example$(EXESUF): output_example.o .libs
|
||||||
$(CC) $(FFLIBDIRS) $(LDFLAGS) -o $@ output_example.o $(FFLIBS) $(EXTRALIBS)
|
$(CC) $(FFLIBDIRS) $(LDFLAGS) -o $@ output_example.o $(FFLIBS) $(EXTRALIBS)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
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
|
test $svn_revision || svn_revision=UNKNOWN
|
||||||
|
|
||||||
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
|
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revision\""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user