aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/test/create-all-h.sh
blob: 158a8b4c198c471b1a4e4055063c0ec65f12c39c (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 Yahoo. 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 Yahoo. 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