diff options
author | katherine <shmibs@airen-no-jikken.icu> | 2019-05-20 03:44:45 -0700 |
---|---|---|
committer | katherine <shmibs@airen-no-jikken.icu> | 2019-05-20 03:44:45 -0700 |
commit | 326646d14100c43f8cb64e7673f36fcc2b01eb6d (patch) | |
tree | 09a095630b7e2e4e534d08cbe220b079da5dc7bd | |
parent | 8209a7d03d53ae2ec70256bc19479474d663fead (diff) | |
download | confconf-326646d14100c43f8cb64e7673f36fcc2b01eb6d.tar.gz |
use git describe
-rwxr-xr-x | configure | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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' |