Make _SVNVER_SH more readable.
This commit is contained in:
parent
213cef1739
commit
a063035b37
@ -43,15 +43,12 @@ include ${MK}/${MKTERMCAP}.mk
|
|||||||
LDADD+= ${LIBDL} ${LIBKVM}
|
LDADD+= ${LIBDL} ${LIBKVM}
|
||||||
include ${MK}/${MKPAM}.mk
|
include ${MK}/${MKPAM}.mk
|
||||||
|
|
||||||
_SVNVER_SH= if type svnversion >/dev/null 2>&1; then \
|
_SVNVER_SH= ret=""; \
|
||||||
|
if type svnversion >/dev/null 2>&1; then \
|
||||||
svnver="$$(svnversion)"; \
|
svnver="$$(svnversion)"; \
|
||||||
case "$$svnver" in \
|
[ "$${svnver}" != exported ] && ret="-svn-$${svnver}"; \
|
||||||
exported) echo "";; \
|
fi; \
|
||||||
*) echo "-svn-$$svnver";; \
|
echo "$${ret}";
|
||||||
esac; \
|
|
||||||
else \
|
|
||||||
echo ""; \
|
|
||||||
fi
|
|
||||||
_SVNVER!= ${_SVNVER_SH}
|
_SVNVER!= ${_SVNVER_SH}
|
||||||
SVNVER= ${_SVNVER}$(shell ${_SVNVER_SH})
|
SVNVER= ${_SVNVER}$(shell ${_SVNVER_SH})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user