summaryrefslogtreecommitdiffstats
path: root/src/share/api/generate-api-files
blob: ff223cf5f01e433a6825317e6538ae7beff66ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# This script generates api_files.mk
# Usage:
#
# ./generate-api-files > api_files.mk

if [ $# -ne 0 ]; then
    echo "Usage: ./generate-api-files"
    exit
fi

for f in [a-z]*.json ; do
    echo "api_files += \$(top_srcdir)/src/share/api/$f"
done