diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-01-10 16:04:06 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-01-24 08:35:31 -0800 |
commit | e7e6cffcf354cc3d2427103b628f924bb39d7fb0 (patch) | |
tree | 0622789f5a19ecb22b4ce1195ae769f45fa04998 /scripts/generate-test-files.sh | |
parent | 13d27c700e4b0590c4f1c365bfa36cf2a07c437d (diff) | |
download | qtlocation-mapboxgl-e7e6cffcf354cc3d2427103b628f924bb39d7fb0.tar.gz |
[build] convert CMake file list generation code to JavaScript
Bash sorting is weird...
Diffstat (limited to 'scripts/generate-test-files.sh')
-rwxr-xr-x | scripts/generate-test-files.sh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/scripts/generate-test-files.sh b/scripts/generate-test-files.sh deleted file mode 100755 index 5f507d3edf..0000000000 --- a/scripts/generate-test-files.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -set -e -set -o pipefail - -echo "# Do not edit. Regenerate this with ./scripts/generate-test-files.sh" > cmake/test-files.cmake -echo "" >> cmake/test-files.cmake -echo "set(MBGL_TEST_FILES" >> cmake/test-files.cmake -PREFIX= -for FILE in $(git ls-files "test/*.hpp" "test/*.cpp" "test/*.h" "test/*.c" | sort) ; do - CURRENT_PREFIX=$(dirname ${FILE#test/}) - if [ "${PREFIX}" != "${CURRENT_PREFIX}" ]; then - if [ ! -z "${PREFIX}" ]; then echo "" >> cmake/test-files.cmake ; fi - echo " # ${CURRENT_PREFIX}" >> cmake/test-files.cmake - PREFIX="${CURRENT_PREFIX}" - fi - echo " ${FILE}" >> cmake/test-files.cmake -done -echo ")" >> cmake/test-files.cmake -git diff cmake/test-files.cmake |