blob: f4705489c87fc00206529a2e9aca0fc0eb62446f [file] [log] [blame]
Damjan Marion612dd6a2018-07-30 12:45:07 +02001#!/bin/bash
2
3cat > ${1} << __EOF__
4/*
5 * Copyright (c) 2018 Cisco and/or its affiliates.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at:
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19#ifndef included_vpp_app_version_h
20#define included_vpp_app_version_h
21
22#define VPP_BUILD_DATE "$(date)"
23#define VPP_BUILD_USER "$(whoami)"
24#define VPP_BUILD_HOST "$(hostname)"
Damjan Marion6077c972019-01-28 17:55:59 +010025#define VPP_BUILD_TOPDIR "$(git rev-parse --show-toplevel 2> /dev/null)"
Damjan Marion612dd6a2018-07-30 12:45:07 +020026#define VPP_BUILD_VER "$(scripts/version)"
27#endif
28__EOF__