diff options
| author | Even Rouault <even.rouault@mines-paris.org> | 2018-11-15 10:12:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-15 10:12:17 +0100 |
| commit | 4ad1477c24c3da4be6c7962606e6f9d47336b6a3 (patch) | |
| tree | eb4ca374b50ab3c1183a25ac264245c7b4fd681b /scripts/reformat_cpp.sh | |
| parent | 73865a4df1a7d4c37052647f0458567751735f00 (diff) | |
| parent | d928db15d53805d9b728b440079756081961c536 (diff) | |
| download | PROJ-4ad1477c24c3da4be6c7962606e6f9d47336b6a3.tar.gz PROJ-4ad1477c24c3da4be6c7962606e6f9d47336b6a3.zip | |
Merge pull request #1175 from rouault/iso19111_for_merge
Implement RFC 2: Initial integration of "GDAL SRS barn" work
Diffstat (limited to 'scripts/reformat_cpp.sh')
| -rwxr-xr-x | scripts/reformat_cpp.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/reformat_cpp.sh b/scripts/reformat_cpp.sh new file mode 100755 index 00000000..51127529 --- /dev/null +++ b/scripts/reformat_cpp.sh @@ -0,0 +1,22 @@ +#!/bin/sh +set -eu + +SCRIPT_DIR=$(dirname "$0") +case $SCRIPT_DIR in + "/"*) + ;; + ".") + SCRIPT_DIR=$(pwd) + ;; + *) + SCRIPT_DIR=$(pwd)/$(dirname "$0") + ;; +esac + +TOPDIR="$SCRIPT_DIR/.." + +for i in "$TOPDIR"/include/proj/*.hpp "$TOPDIR"/include/proj/internal/*.hpp "$TOPDIR"/src/*.cpp "$TOPDIR"/test/unit/test*.cpp; do + if ! echo "$i" | grep -q "lru_cache.hpp"; then + "$SCRIPT_DIR"/reformat.sh "$i"; + fi +done |
