summaryrefslogtreecommitdiff
path: root/include/libcamera/gen-header.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/gen-header.sh')
-rwxr-xr-xinclude/libcamera/gen-header.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libcamera/gen-header.sh b/include/libcamera/gen-header.sh
index e171c08c..a69fe8e9 100755
--- a/include/libcamera/gen-header.sh
+++ b/include/libcamera/gen-header.sh
@@ -16,8 +16,12 @@ cat <<EOF > "$dst_file"
EOF
-for header in "$src_dir"/*.h ; do
+headers=$(for header in "$src_dir"/*.h ; do
header=$(basename "$header")
+ echo "$header"
+done ; echo "version.h" | sort)
+
+for header in $headers ; do
echo "#include <libcamera/$header>" >> "$dst_file"
done