build_tools/make_version: Fix typo in build_tools/make_version.
The make_version script would test for a .version file in the proper location, but then would not properly read it. Since make_version is always reading the .version script correctly now, the Makefile can be slightly simpilfied and always defer to it. This has no user impact since build_tools/make_version was never used to read the .version file previously but will allow external scripts to use the make_version script. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>
This commit is contained in:
parent
8ea23535dc
commit
0469efb733
6
Makefile
6
Makefile
|
@ -64,11 +64,7 @@ ASCIIDOC_CMD:=$(ASCIIDOC) -n -a toc -a toclevels=4
|
|||
|
||||
GENERATED_DOCS:=README.html
|
||||
|
||||
ifneq ($(wildcard .version),)
|
||||
DAHDIVERSION:=$(shell cat .version)
|
||||
else
|
||||
DAHDIVERSION:=$(shell build_tools/make_version . dahdi/linux)
|
||||
endif
|
||||
DAHDIVERSION:=$(shell build_tools/make_version . dahdi/linux)
|
||||
|
||||
all: modules
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -f ${1}/.version ]; then
|
||||
cat ${1}.version
|
||||
cat ${1}/.version
|
||||
elif [ -f ${1}/.svnrevision ]; then
|
||||
echo SVN-`cat ${1}/.svnbranch`-r`cat ${1}/.svnrevision`
|
||||
elif [ -d ${1}/.svn ]; then
|
||||
|
|
Loading…
Reference in New Issue