mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
cf912f6d15
It used to be downloaded into PATH, but we can now instead run it from git. Also move it to top source dir instead of gstreamer subproject. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/931>
18 lines
429 B
Bash
Executable file
18 lines
429 B
Bash
Executable file
#!/bin/bash
|
|
|
|
BASEDIR=$(dirname $0)
|
|
|
|
|
|
filter_cmd=("cat")
|
|
if test -f ".indentignore"; then
|
|
filter_args=()
|
|
while read -r line; do
|
|
if test -n "$line"; then
|
|
filter_args+=("-e" "$line")
|
|
fi
|
|
done < ".indentignore"
|
|
if [[ ${#filter_args[@]} -gt 0 ]]; then
|
|
filter_cmd=("grep" "-v" "${filter_args[@]}")
|
|
fi
|
|
fi
|
|
git ls-files "*.c" | "${filter_cmd[@]}" | xargs -d '\n' $BASEDIR/gst-indent
|