summaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/test/create-all-h.sh
blob: 5f7424f029073c54d1a2d57949138927e6fc151e (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 2017 Yahoo Holdings. 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 2017 Yahoo Holdings. 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