aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@airen-no-jikken.icu>2019-05-20 03:44:45 -0700
committerkatherine <shmibs@airen-no-jikken.icu>2019-05-20 03:44:45 -0700
commit326646d14100c43f8cb64e7673f36fcc2b01eb6d (patch)
tree09a095630b7e2e4e534d08cbe220b079da5dc7bd
parent8209a7d03d53ae2ec70256bc19479474d663fead (diff)
downloadconfconf-326646d14100c43f8cb64e7673f36fcc2b01eb6d.tar.gz
use git describe
-rwxr-xr-xconfigure8
1 files 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'