[ccache] PATCH: Fix version.c for older gits

Mike Frysinger vapier.adi at gmail.com
Fri Sep 24 12:49:34 MDT 2010


On Fri, Sep 24, 2010 at 14:46, Wilson Snyder wrote:
> -    $(shell (git describe --dirty 2>/dev/null || echo vunknown) \
> +    $(shell (git describe --dirty 2>/dev/null || git describe 2>/dev/null || echo vunknown) \

probably better to move the stderr outside of the subshell:
       $(shell (git describe --dirty || git describe || echo vunknown)
2>/dev/null \
-mike


More information about the ccache mailing list