aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/test/create-all-h.sh
blob: 37138c38c6ed5dc71d8a87f000daa364eabd9b22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#!/bin/sh
cd $(dirname $0)
out="all.h"
exec > $out
year=$(date +%Y)
cat <<EOF
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// This file was generated by $(basename $0)


EOF

(
  cd ../..
  find vbench -name "*.h" | grep -v "vbench/test/$out" | while read name; do
    echo "#include <$name>"
  done
)

cat <<EOF

EOF