blob: 993a682954b231ce13dce77d15dfc1270070a054 [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)"
25#define VPP_BUILD_TOPDIR "$(git rev-parse --show-toplevel)"
26#define VPP_BUILD_VER "$(scripts/version)"
27#endif
28__EOF__