New upstream version 18.11-rc1
[deb_dpdk.git] / doc / api / generate_examples.sh
1 #! /bin/sh -e
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright 2018 Luca Boccassi <bluca@debian.org>
4
5 EXAMPLES_DIR=$1
6 API_EXAMPLES=$2
7
8 exec > "${API_EXAMPLES}"
9 printf '/**\n'
10 printf '@page examples DPDK Example Programs\n\n'
11 find "${EXAMPLES_DIR}" -type f -name '*.c' -printf '@example examples/%P\n' | LC_ALL=C sort
12 printf '*/\n'