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
ee9aacc49e
commit
90e0c0037e
3 changed files with 5 additions and 10 deletions
|
@ -1,4 +1,3 @@
|
||||||
ACLOCAL_AMFLAGS=-I m4
|
|
||||||
SUBDIRS=lib src
|
SUBDIRS=lib src
|
||||||
EXTRA_DIST=server.html
|
EXTRA_DIST=server.html
|
||||||
docs:
|
docs:
|
||||||
|
|
|
@ -2,11 +2,12 @@
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.60])
|
AC_PREREQ([2.60])
|
||||||
m4_include([version.m4])
|
AC_INIT([MistServer],
|
||||||
AC_INIT(MistServer, VERSION_NUMBER, contact@ddvtech.com)
|
m4_esyscmd([git describe --tags | tr -d '\n']),
|
||||||
|
[contact@ddvtech.com])
|
||||||
AC_CONFIG_SRCDIR([src/buffer.cpp])
|
AC_CONFIG_SRCDIR([src/buffer.cpp])
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
# foreign: no need for NEWS or INSTALL files
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE([foreign])
|
||||||
LT_INIT
|
LT_INIT
|
||||||
|
|
||||||
# Checks for programs.
|
# 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