1#! /bin/sh
2
3########################################################################
4##
5## Copyright (C) 2016-2021 The Octave Project Developers
6##
7## See the file COPYRIGHT.md in the top-level directory of this
8## distribution or <https://octave.org/copyright/>.
9##
10## This file is part of Octave.
11##
12## Octave is free software: you can redistribute it and/or modify it
13## under the terms of the GNU General Public License as published by
14## the Free Software Foundation, either version 3 of the License, or
15## (at your option) any later version.
16##
17## Octave is distributed in the hope that it will be useful, but
18## WITHOUT ANY WARRANTY; without even the implied warranty of
19## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20## GNU General Public License for more details.
21##
22## You should have received a copy of the GNU General Public License
23## along with Octave; see the file COPYING.  If not, see
24## <https://www.gnu.org/licenses/>.
25##
26########################################################################
27
28: ${SED=@SED@}
29
30OCTAVE_API_VERSION="@OCTAVE_API_VERSION@"
31OCTAVE_CANONICAL_HOST_TYPE="@canonical_host_type@"
32OCTAVE_COPYRIGHT="@OCTAVE_COPYRIGHT@"
33OCTAVE_MAJOR_VERSION="@OCTAVE_MAJOR_VERSION@"
34OCTAVE_MINOR_VERSION="@OCTAVE_MINOR_VERSION@"
35OCTAVE_PATCH_VERSION="@OCTAVE_PATCH_VERSION@"
36OCTAVE_RELEASE_DATE="@OCTAVE_RELEASE_DATE@"
37OCTAVE_VERSION="@OCTAVE_VERSION@"
38
39$SED \
40  -e "s|%NO_EDIT_WARNING%|DO NOT EDIT!  Generated automatically by mk-version-h.|" \
41  -e "s|%OCTAVE_API_VERSION%|\"${OCTAVE_API_VERSION}\"|" \
42  -e "s|%OCTAVE_CANONICAL_HOST_TYPE%|\"${OCTAVE_CANONICAL_HOST_TYPE}\"|" \
43  -e "s|%OCTAVE_COPYRIGHT%|\"${OCTAVE_COPYRIGHT}\"|" \
44  -e "s|%OCTAVE_MAJOR_VERSION%|${OCTAVE_MAJOR_VERSION}|" \
45  -e "s|%OCTAVE_MINOR_VERSION%|${OCTAVE_MINOR_VERSION}|" \
46  -e "s|%OCTAVE_PATCH_VERSION%|${OCTAVE_PATCH_VERSION}|" \
47  -e "s|%OCTAVE_RELEASE_DATE%|\"${OCTAVE_RELEASE_DATE}\"|" \
48  -e "s|%OCTAVE_VERSION%|\"${OCTAVE_VERSION}\"|"
49