autofoo cleanup, put version detection in configure.ac
- Autogenerated files do not belong to the repository, remove those files. - The version is also determined when generating the configure file, so remove the version.sh file as well. - Remove ACLOCAL_AMFLAGS and the related entry in configure.ac to get rid of configuration errors. - Do not create NEWS or INSTALL by using a lower strictness. - Ignore autogenerated autojunk.
This commit is contained in:
parent
c885aec389
commit
fcf29984c0
4 changed files with 13 additions and 14 deletions
12
.gitignore
vendored
12
.gitignore
vendored
|
@ -13,7 +13,11 @@ autom4te.cache
|
|||
src/Mist*
|
||||
src/analysers/Mist*
|
||||
src/converters/Mist*
|
||||
configure
|
||||
config.log
|
||||
config.status
|
||||
|
||||
/configure
|
||||
/config.*
|
||||
/aclocal.m4
|
||||
/install-sh
|
||||
/ltmain.sh
|
||||
/missing
|
||||
/depcomp
|
||||
.libs
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
ACLOCAL_AMFLAGS=-I m4
|
||||
SUBDIRS=lib src
|
||||
EXTRA_DIST=server.html
|
||||
docs:
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.60])
|
||||
m4_include([version.m4])
|
||||
AC_INIT(MistServer, VERSION_NUMBER, contact@ddvtech.com)
|
||||
AC_INIT([MistServer],
|
||||
m4_esyscmd([git describe --tags | tr -d '\n']),
|
||||
[contact@ddvtech.com])
|
||||
AC_CONFIG_SRCDIR([src/buffer.cpp])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AM_INIT_AUTOMAKE
|
||||
# foreign: no need for NEWS or INSTALL files
|
||||
AM_INIT_AUTOMAKE([foreign])
|
||||
LT_INIT
|
||||
|
||||
# Checks for programs.
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
if git describe --tags > version.tmp; then
|
||||
echo "m4_define([VERSION_NUMBER], [`tr -d '\n' < version.tmp`])" > version.m4
|
||||
fi
|
||||
rm version.tmp
|
Loading…
Add table
Reference in a new issue