From 326646d14100c43f8cb64e7673f36fcc2b01eb6d Mon Sep 17 00:00:00 2001 From: katherine Date: Mon, 20 May 2019 03:44:45 -0700 Subject: use git describe --- configure | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 7fb7f06..458369e 100755 --- a/configure +++ b/configure @@ -64,20 +64,18 @@ fi printf %s\\n ' printf "%s\n%s\n\n%s%s%s\n\n%s\n" \' printf %s\\n ' "#ifndef CONFCONF_VERSION_H" \' printf %s\\n ' "#define CONFCONF_VERSION_H" \' - printf %s\\n ' "#define VERSION \"confconf " "`git rev-parse --short=8 HEAD`" "\"" \' + printf %s\\n ' "#define VERSION \"confconf " "`git describe --always --tags`" "\"" \' printf %s\\n ' "#endif" > src/version.h' printf %s\\n '' printf %s\\n "$sources" | (while IFS= read -r s; do $dgen $CFLAGS -MM -MG -MT ${objdir}/release/`printf %s $s | sed -e 's/\.c$/\.o/'` "$srcdir/$s" | sed -e "s/version.h/$srcdir\/version.h/g" printf %s\\n " \$(CC) -c \$(CFLAGS) -o ${objdir}/release/`printf %s $s | sed -e 's/\.c$/\.o/'` ${srcdir}/$s" - done - ) + done) printf %s\\n '' printf %s\\n "$sources" | (while IFS= read -r s; do $dgen $CFLAGS -MM -MG -MT ${objdir}/debug/`printf %s $s | sed -e 's/\.c$/\.o/'` "$srcdir/$s" | sed -e "s/version.h/$srcdir\/version.h/g" printf %s\\n " \$(CC) -c \$(CFLAGSDEBUG) -o ${objdir}/debug/`printf %s $s | sed -e 's/\.c$/\.o/'` ${srcdir}/$s" - done - ) + done) printf %s\\n '' printf %s\\n 'clean:' printf %s\\n ' rm -f src/version.h' -- cgit v1.2.3