diff --git a/scripts/check-format-c b/scripts/check-format-c deleted file mode 100755 index 61c2b5c1e0..0000000000 --- a/scripts/check-format-c +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -set -e - -CUR_DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -indent --version || true - -$CUR_DIR/gst-indent-all - -if git diff --quiet -- ':!subprojects/gst-integration-testsuites/medias' .; then - echo "Code is properly formatted" -else - git diff --color=always -- ':!subprojects/gst-integration-testsuites/medias' . -echo 'style diverges, please run gst-indent first' - exit 1 -fi diff --git a/scripts/gst-indent-all b/scripts/gst-indent-all deleted file mode 100755 index 556dd19eec..0000000000 --- a/scripts/gst-indent-all +++ /dev/null @@ -1,31 +0,0 @@ -#!/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 - -if test -f ".indent_cpp_list"; then - filter_args=() - while read -r line; do - if test -n "$line"; then - filter_args+=("-e" "$line") - fi - done < ".indent_cpp_list" - if [[ ${#filter_args[@]} -gt 0 ]]; then - filter_cmd=("grep" "-E" "${filter_args[@]}") - git ls-files "*.cpp" | "${filter_cmd[@]}" | xargs -d '\n' $BASEDIR/gst-indent - fi -fi