Commit efeb8d13 authored by Mark Olesen's avatar Mark Olesen

CONFIG: reproducible MAN_DATE for openfoam-selector (fixes #2)

- allows identical build results later
  (see https://reproducible-builds.org/)

- define the release date in the RELEASE file,
  and also include the version there as well.
parent eb96f4b8
# Version and release-date key/value information (no spaces!!)
#
version=1.0.6
date=2020-08-10
#----
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for openfoam-selector 1.0.5.
# Generated by GNU Autoconf 2.69 for openfoam-selector 1.0.6.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
......@@ -576,8 +576,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='openfoam-selector'
PACKAGE_TARNAME='openfoam-selector'
PACKAGE_VERSION='1.0.5'
PACKAGE_STRING='openfoam-selector 1.0.5'
PACKAGE_VERSION='1.0.6'
PACKAGE_STRING='openfoam-selector 1.0.6'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
......@@ -1204,7 +1204,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures openfoam-selector 1.0.5 to adapt to many kinds of systems.
\`configure' configures openfoam-selector 1.0.6 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1271,7 +1271,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of openfoam-selector 1.0.5:";;
short | recursive ) echo "Configuration of openfoam-selector 1.0.6:";;
esac
cat <<\_ACEOF
......@@ -1353,7 +1353,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
openfoam-selector configure 1.0.5
openfoam-selector configure 1.0.6
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
......@@ -1370,7 +1370,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by openfoam-selector $as_me 1.0.5, which was
It was created by openfoam-selector $as_me 1.0.6, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
......@@ -2233,7 +2233,7 @@ fi
# Define the identity of the package.
PACKAGE='openfoam-selector'
VERSION='1.0.5'
VERSION='1.0.6'
cat >>confdefs.h <<_ACEOF
......@@ -2400,7 +2400,7 @@ OPENFOAM_SELECTOR_HOME_FILE=".openfoam-selector"
prefix=$prefix_save
# Information for the man page
MAN_DATE=`date "+%Y-%m-%d"`
MAN_DATE=$(sed -ne s/^date=//p RELEASE)
# Party on
......@@ -2959,7 +2959,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by openfoam-selector $as_me 1.0.5, which was
This file was extended by openfoam-selector $as_me 1.0.6, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
......@@ -3016,7 +3016,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
openfoam-selector config.status 1.0.5
openfoam-selector config.status 1.0.6
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
......
# -*- shell-script -*-
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
# Copyright (C) 2018-2020 OpenCFD Ltd.
#
# Notes
# - the RELEASE file contains both version and date information
# ------------------------------------------------------------------------
# Startup
AC_INIT([openfoam-selector],
[m4_normalize(esyscmd([cat VERSION]))],
[m4_normalize(esyscmd([sed -ne s/^version=//p RELEASE]))],
[], [openfoam-selector])
AM_INIT_AUTOMAKE([foreign dist-bzip2])
......@@ -67,13 +71,12 @@ AC_SUBST(OPENFOAM_SELECTOR_HOME_FILE)
prefix=$prefix_save
# Information for the man page
MAN_DATE=`date "+%Y-%m-%d"`
MAN_DATE=$(sed -ne s/^date=//p RELEASE)
AC_SUBST(MAN_DATE)
# Party on
AC_CONFIG_FILES([
Makefile
openfoam-selector
openfoam-selector.sh
openfoam-selector.csh
......
......@@ -21,7 +21,8 @@
cd "${0%/*}" || exit
package="openfoam-selector"
version="$(cat VERSION)"
version="$(sed -ne s/^version=//p RELEASE)"
# date="$(sed -ne s/^date=//p RELEASE)"
[ -n "$version" ] || {
echo "No version info" 1>&2
......
......@@ -20,7 +20,8 @@
cd "${0%/*}" || exit
package="openfoam-selector"
version="$(cat VERSION)"
version="$(sed -ne s/^version=//p RELEASE)"
# date="$(sed -ne s/^date=//p RELEASE)"
[ -n "$version" ] || {
echo "No version info" 1>&2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment