1
0
mirror of https://git.familie-radermacher.ch/linux/ptouch-print.git synced 2025-05-13 15:22:56 +00:00

added generated configure to .gitignore, VERSION string now is in my preferred format using helper script build-aux/git-version-gen

This commit is contained in:
Dominic Radermacher 2018-08-26 10:16:31 +02:00
parent d093ba96e7
commit 73026c7ed3
3 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ Makefile.in
/install-sh
/missing
/stamp-h1
/configure
/config.guess
/config.h.in
/config.rpath

3
build-aux/git-version-gen Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
GIT_VERSION=$(git --no-pager describe --tags --dirty |sed 's/\([^-]*-g\)/r\1/;s/-/./g')
echo -ne ${GIT_VERSION}

View File

@ -20,7 +20,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([ptouch], [m4_esyscmd_s([git describe --tags])], [blip@mockmoon-cybernetics.ch])
AC_INIT([ptouch], [m4_esyscmd_s([build-aux/git-version-gen])], [blip@mockmoon-cybernetics.ch])
AC_CONFIG_SRCDIR([src/libptouch.c])
AC_CONFIG_HEADERS([config.h])