summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-08-17 16:22:13 (GMT)
committerGitHub <noreply@github.com>2022-08-17 16:22:13 (GMT)
commit1483eeef34700d5a161810fe6ee92695125b2361 (patch)
treee445a2a3ec29b90c6e85a2d6fdac767f86f287a7
parentdc9562ee77ec29ae49f4f0694c77a2a39473f726 (diff)
downloadhdf5-1483eeef34700d5a161810fe6ee92695125b2361.zip
hdf5-1483eeef34700d5a161810fe6ee92695125b2361.tar.gz
hdf5-1483eeef34700d5a161810fe6ee92695125b2361.tar.bz2
Removes bin/format_source_patch (#2022)
This differs only trivially from bin/format_source
-rwxr-xr-xbin/format_source_patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/bin/format_source_patch b/bin/format_source_patch
deleted file mode 100755
index 2e01455..0000000
--- a/bin/format_source_patch
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-#
-# Recursively format all C & C++ sources and header files, except those in the
-# 'config' directory and generated files, such as H5LTanalyze.c, etc.
-#
-# Note that any files or directories that are excluded here should also be
-# added to the 'exclude' list in .github/workflows/clang-format-check.yml
-#
-# (Remember to update both bin/format_source and bin/format_source_patch)
-
-find . \( -type d -path ./config -prune -and -not -path ./config \) \
- -or \( \( \! \( \
- -name H5LTanalyze.c \
- -or -name H5LTparse.c \
- -or -name H5LTparse.h \
- -or -name H5Epubgen.h \
- -or -name H5Einit.h \
- -or -name H5Eterm.h \
- -or -name H5Edefin.h \
- -or -name H5version.h \
- -or -name H5overflow.h \
- \) \) \
- -and \( -iname *.h -or -iname *.c -or -iname *.cpp -or -iname *.hpp -or -iname *.java \) \) \
- | xargs clang-format -style=file -i -fallback-style=none
-
-git diff > clang_format.patch
-
-# Delete if 0 size
-if [ ! -s clang_format.patch ]
-then
- rm clang_format.patch
-fi
-
-exit 0