diff options
author | Roy Marples <roy@marples.name> | 2009-01-02 22:51:47 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-01-02 22:51:47 +0000 |
commit | a063035b370abed7ed5f44365053bcc6dfb4f318 (patch) | |
tree | 742f958f0a5b6afb3ea9e237f26e5acc7d818675 /src/rc/Makefile | |
parent | 213cef1739298175138483a343a70bb60f0100fe (diff) |
Make _SVNVER_SH more readable.
Diffstat (limited to 'src/rc/Makefile')
-rw-r--r-- | src/rc/Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile index 6438fd5a..dd21cf83 100644 --- a/src/rc/Makefile +++ b/src/rc/Makefile @@ -43,15 +43,12 @@ include ${MK}/${MKTERMCAP}.mk LDADD+= ${LIBDL} ${LIBKVM} 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)"; \ - case "$$svnver" in \ - exported) echo "";; \ - *) echo "-svn-$$svnver";; \ - esac; \ - else \ - echo ""; \ - fi + [ "$${svnver}" != exported ] && ret="-svn-$${svnver}"; \ + fi; \ + echo "$${ret}"; _SVNVER!= ${_SVNVER_SH} SVNVER= ${_SVNVER}$(shell ${_SVNVER_SH}) |