Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | cat > ${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 Marion | 6077c97 | 2019-01-28 17:55:59 +0100 | [diff] [blame] | 25 | #define VPP_BUILD_TOPDIR "$(git rev-parse --show-toplevel 2> /dev/null)" |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 26 | #define VPP_BUILD_VER "$(scripts/version)" |
| 27 | #endif |
| 28 | __EOF__ |