xref: /f-stack/dpdk/doc/api/generate_examples.sh (revision 28440c50)
1#! /bin/sh -e
2# SPDX-License-Identifier: BSD-3-Clause
3# Copyright 2018 Luca Boccassi <[email protected]>
4
5EXAMPLES_DIR=$1
6API_EXAMPLES=$2
7
8exec > "${API_EXAMPLES}"
9printf '/**\n'
10printf '@page examples DPDK Example Programs\n\n'
11find "${EXAMPLES_DIR}" -type f -name '*.c' -printf '@example examples/%P\n' | LC_ALL=C sort
12printf '*/\n'
13