Skip to content

Commit 9e9f8b2

Browse files
rouault-botrouault
authored andcommitted
Move gdal/* to toplevel
1 parent f140a99 commit 9e9f8b2

File tree

4,386 files changed

+510
-531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,386 files changed

+510
-531
lines changed

.github/workflows/android.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Android build
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
6+
- 'doc/**'
77
pull_request:
88
paths-ignore:
9-
- 'gdal/doc/**'
9+
- 'doc/**'
1010

1111
jobs:
1212

.github/workflows/android/start.sh

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ tar xzf sqlite-autoconf-3250100.tar.gz
5555
# Build proj
5656
(cd proj; ./autogen.sh && PKG_CONFIG_PATH=/tmp/install/lib/pkgconfig ./configure --host=arm-linux-androideabi --prefix=/tmp/install --disable-static && make -j3 && make install)
5757

58-
cd gdal
5958
./autogen.sh
6059
./configure --host=arm-linux-androideabi --with-proj=/tmp/install --with-sqlite3=/tmp/install
6160
make USER_DEFS="-Wextra -Werror" -j3

.github/workflows/asan/start.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,9 @@ sudo sh -c "apt-get remove -y libproj-dev"
8080

8181
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
8282

83-
CURRENT_DIR=$PWD
84-
cd gdal
85-
8683
./autogen.sh
8784
SANITIZE_FLAGS="-DMAKE_SANITIZE_HAPPY -fsanitize=undefined -fsanitize=address -fsanitize=unsigned-integer-overflow"
88-
CFLAGS=$SANITIZE_FLAGS CXXFLAGS=$SANITIZE_FLAGS LDFLAGS="-fsanitize=undefined -fsanitize=address -lstdc++" ./configure --prefix=/usr --without-libtool --enable-debug --with-jpeg12 --with-poppler --without-podofo --with-spatialite --with-mysql --with-liblzma --with-webp --with-epsilon --with-libtiff=internal --with-rename-internal-libtiff-symbols --with-hide-internal-symbols --with-gnm --with-proj=/usr/local --with-fgdb=$PWD/../FileGDB_API-64gcc51
85+
CFLAGS=$SANITIZE_FLAGS CXXFLAGS=$SANITIZE_FLAGS LDFLAGS="-fsanitize=undefined -fsanitize=address -lstdc++" ./configure --prefix=/usr --without-libtool --enable-debug --with-jpeg12 --with-poppler --without-podofo --with-spatialite --with-mysql --with-liblzma --with-webp --with-epsilon --with-libtiff=internal --with-rename-internal-libtiff-symbols --with-hide-internal-symbols --with-gnm --with-proj=/usr/local --with-fgdb=$PWD/FileGDB_API-64gcc51
8986
sed -i "s/-fsanitize=address/-fsanitize=address -shared-libasan/g" GDALmake.opt
9087
sed -i "s/-fsanitize=unsigned-integer-overflow/-fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow/g" GDALmake.opt
9188
make USER_DEFS="-Werror" -j3
@@ -108,8 +105,6 @@ sudo ldconfig
108105

109106
ccache -s
110107

111-
cd "$CURRENT_DIR"
112-
113108
echo "Saving ccache..."
114109
rm -f "$WORK_DIR/ccache.tar.gz"
115110
(cd $HOME && tar czf "$WORK_DIR/ccache.tar.gz" .ccache)

.github/workflows/asan_build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: ASAN build
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
6+
- 'doc/**'
77
pull_request:
88
paths-ignore:
9-
- 'gdal/doc/**'
9+
- 'doc/**'
1010

1111
jobs:
1212

.github/workflows/clang_static_analyzer.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: CLang Static Analyzer
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
6+
- 'doc/**'
77
pull_request:
88
paths-ignore:
9-
- 'gdal/doc/**'
9+
- 'doc/**'
1010

1111

1212
jobs:
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v2
2020

2121
- name: Run
22-
run: docker run --rm -v $PWD:$PWD ubuntu:16.04 sh -c "cd $PWD && apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sudo software-properties-common && DEBIAN_FRONTEND=noninteractive sh ./gdal/ci/travis/csa_part_1/before_install.sh && sh ./gdal/ci/travis/csa_part_1/install.sh && sh ./gdal/ci/travis/csa_part_1/script.sh"
22+
run: docker run --rm -v $PWD:$PWD ubuntu:16.04 sh -c "cd $PWD && apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sudo software-properties-common && DEBIAN_FRONTEND=noninteractive sh ./ci/travis/csa_part_1/before_install.sh && sh ./ci/travis/csa_part_1/install.sh && sh ./ci/travis/csa_part_1/script.sh"
2323

2424
clang_static_analyzer_part_2:
2525
runs-on: ubuntu-20.04
@@ -29,4 +29,4 @@ jobs:
2929
uses: actions/checkout@v2
3030

3131
- name: Run
32-
run: docker run --rm -v $PWD:$PWD ubuntu:16.04 sh -c "cd $PWD && apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sudo software-properties-common && DEBIAN_FRONTEND=noninteractive sh ./gdal/ci/travis/csa_part_2/before_install.sh && sh ./gdal/ci/travis/csa_part_2/install.sh && sh ./gdal/ci/travis/csa_part_2/script.sh"
32+
run: docker run --rm -v $PWD:$PWD ubuntu:16.04 sh -c "cd $PWD && apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sudo software-properties-common && DEBIAN_FRONTEND=noninteractive sh ./ci/travis/csa_part_2/before_install.sh && sh ./ci/travis/csa_part_2/install.sh && sh ./ci/travis/csa_part_2/script.sh"

.github/workflows/code_checks.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Code Checks
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
6+
- 'doc/**'
77
pull_request:
88
paths-ignore:
9-
- 'gdal/doc/**'
9+
- 'doc/**'
1010

1111
jobs:
1212

@@ -23,10 +23,10 @@ jobs:
2323
sudo apt install -y cppcheck libsqlite3-dev ccache sqlite3 libproj-dev
2424
2525
- name: Run configure
26-
run: (cd gdal && ./autogen.sh && ./configure)
26+
run: (./autogen.sh && ./configure)
2727

2828
- name: Run cppcheck test
29-
run: ./gdal/scripts/cppcheck.sh
29+
run: ./scripts/cppcheck.sh
3030

3131
code_quality_checks:
3232
runs-on: ubuntu-latest
@@ -35,19 +35,19 @@ jobs:
3535
uses: actions/checkout@v2
3636

3737
- name: Detect tabulations
38-
run: ./gdal/scripts/detect_tabulations.sh
38+
run: ./scripts/detect_tabulations.sh
3939

4040
- name: Detect printf
41-
run: ./gdal/scripts/detect_printf.sh
41+
run: ./scripts/detect_printf.sh
4242

4343
- name: Detect self assignments
44-
run: ./gdal/scripts/detect_self_assignment.sh
44+
run: ./scripts/detect_self_assignment.sh
4545

4646
- name: Detect suspicious char digit zero
47-
run: ./gdal/scripts/detect_suspicious_char_digit_zero.sh
47+
run: ./scripts/detect_suspicious_char_digit_zero.sh
4848

4949
- name: Shellcheck
50-
run: shellcheck -e SC2086,SC2046,SC2164,SC2054 $(find gdal -name '*.sh' -a -not -name ltmain.sh)
50+
run: shellcheck -e SC2086,SC2046,SC2164,SC2054 $(find . -name '*.sh' -a -not -name ltmain.sh -a -not -wholename "./autotest/*" -a -not -wholename "./.github/*")
5151

5252
flake8:
5353
runs-on: ubuntu-latest
@@ -64,7 +64,7 @@ jobs:
6464
run: |
6565
export FLAKE8="flake8 --config autotest/setup.cfg"
6666
$FLAKE8 autotest
67-
$FLAKE8 gdal/swig/python/gdal-utils/
67+
$FLAKE8 swig/python/gdal-utils/
6868
6969
doxygen:
7070
runs-on: ubuntu-18.04
@@ -79,6 +79,6 @@ jobs:
7979
8080
- name: Run doxygen
8181
run: |
82-
cd gdal/doc
82+
cd doc
8383
make .doxygen_up_to_date >log.txt 2>&1
8484
if grep -i warning log.txt | grep -v -e russian -e brazilian; then echo "Doxygen warnings found" && cat log.txt && /bin/false; else echo "No Doxygen warnings found"; fi

.github/workflows/conda.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Conda
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
7-
# Disabled because of https://github.com/OSGeo/gdal/issues/4599
6+
- 'doc/**'
7+
# Disabled because of https://github.com/OSGeo/issues/4599
88
#pull_request:
99
# paths-ignore:
10-
# - 'gdal/doc/**'
10+
# - 'doc/**'
1111

1212

1313
jobs:
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup
3636
shell: bash -l {0}
3737
run: |
38-
source ./gdal/ci/travis/conda/setup.sh
38+
source ./ci/travis/conda/setup.sh
3939
4040
- name: Support longpaths
4141
run: git config --system core.longpaths true
@@ -44,7 +44,7 @@ jobs:
4444
- name: Build
4545
shell: bash -l {0}
4646
run: |
47-
source ../gdal/ci/travis/conda/compile.sh
47+
source ../ci/travis/conda/compile.sh
4848
working-directory: ./gdal-feedstock
4949

5050
- uses: ilammy/msvc-dev-cmd@v1
@@ -61,5 +61,5 @@ jobs:
6161
env:
6262
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
6363
run: |
64-
source ../gdal/ci/travis/conda/upload.sh || true
64+
source ../ci/travis/conda/upload.sh || true
6565
working-directory: ./gdal-feedstock

.github/workflows/fedora_rawhide.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Fedora Rawhide
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
6+
- 'doc/**'
77
pull_request:
88
paths-ignore:
9-
- 'gdal/doc/**'
9+
- 'doc/**'
1010

1111

1212
jobs:

.github/workflows/fedora_rawhide/start.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,14 @@ ccache -M 1G
4949
ccache -s
5050

5151
# Configure GDAL
52-
CURRENT_DIR=$PWD
53-
cd gdal
5452
./autogen.sh
5553
CC='ccache clang' CXX='ccache clang++' LDFLAGS='-lstdc++' ./configure --prefix=/usr --without-libtool --with-python=/usr/bin/python3 --with-poppler --with-spatialite --with-liblzma --with-webp --with-hdf4 --with-hdf5 --with-armadillo
5654

5755
make USER_DEFS=-Werror -j$(nproc)
5856
(cd apps && make USER_DEFS=-Werror -j$(nproc) test_ogrsf)
5957
make install
6058
ldconfig
61-
cd "$CURRENT_DIR"
59+
6260
(cd autotest/cpp && make -j3)
6361

6462
ccache -s

.github/workflows/macos.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: MacOS build
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
6+
- 'doc/**'
77
pull_request:
88
paths-ignore:
9-
- 'gdal/doc/**'
9+
- 'doc/**'
1010

1111

1212
jobs:
@@ -26,17 +26,17 @@ jobs:
2626
- name: Install Requirements
2727
shell: bash -l {0}
2828
run: |
29-
source ./gdal/ci/travis/osx/before_install.sh
29+
source ./ci/travis/osx/before_install.sh
3030
3131
- name: Build
3232
shell: bash -l {0}
3333
run: |
34-
source ./gdal/ci/travis/osx/install.sh
34+
source ./ci/travis/osx/install.sh
3535
3636
- name: Run tests
3737
shell: bash -l {0}
3838
run: |
39-
source ./gdal/ci/travis/osx/script.sh
39+
source ./ci/travis/osx/script.sh
4040
env:
4141
# Emulate a few Travis-CI env variable so that some tests get properly skipped
4242
TRAVIS: true

.github/workflows/mingw_w64.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: mingw_w64 build
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
6+
- 'doc/**'
77
pull_request:
88
paths-ignore:
9-
- 'gdal/doc/**'
9+
- 'doc/**'
1010

1111

1212
jobs:

.github/workflows/mingw_w64/start.sh

+5-6
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ tar xzf sqlite-autoconf-3250100.tar.gz
7575
(cd proj; sudo make -j3 install)
7676

7777
# build GDAL
78-
cd gdal
7978
./autogen.sh
8079
./configure --host=x86_64-w64-mingw32 --with-proj=/tmp/install
8180
make USER_DEFS="-Wextra -Werror" -j3
@@ -90,7 +89,7 @@ cd swig/python
9089
ln -s "$WINEPREFIX/drive_c/users/root/Local Settings/Application Data/Programs/Python/Python37" $WINEPREFIX/drive_c/Python37
9190
gendef $WINEPREFIX/drive_c/Python37/python37.dll
9291
x86_64-w64-mingw32-dlltool --dllname $WINEPREFIX/drive_c/Python37/python37.dll --input-def python37.def --output-lib $WINEPREFIX/drive_c/Python37/libs/libpython37.a
93-
bash fallback_build_mingw32_under_unix_py37.sh
92+
bash fallback_build_mingw32_under_unix_py37.sh
9493
cd ../..
9594

9695
ccache -s
@@ -101,7 +100,7 @@ rm -f "$WORK_DIR/ccache.tar.gz"
101100

102101

103102
wine64 apps/gdalinfo.exe --version
104-
cd ../autotest
103+
cd autotest
105104
# Does not work under wine
106105
rm -f gcore/rfc30.py
107106
rm -f pyscripts/data/test_utf8*
@@ -116,7 +115,7 @@ export PYTEST="wine64 $PYTHON_DIR/python.exe -m pytest -vv -p no:sugar --color=n
116115

117116

118117
# Run all the Python autotests
119-
GDAL_DATA=$PWD/../gdal/data \
120-
PYTHONPATH=$PWD/../gdal/swig/python/build/lib.win-amd64-3.7 \
121-
PATH=$PWD/../gdal:$PWD/../gdal/apps/.libs:$PWD:$PATH \
118+
GDAL_DATA=$PWD/../data \
119+
PYTHONPATH=$PWD/../swig/python/build/lib.win-amd64-3.7 \
120+
PATH=$PWD/../gdal:$PWD/../apps/.libs:$PWD:$PATH \
122121
$PYTEST

.github/workflows/ubuntu_18.04.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Ubuntu 18.04 build
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
6+
- 'doc/**'
77
pull_request:
88
paths-ignore:
9-
- 'gdal/doc/**'
9+
- 'doc/**'
1010

1111

1212
jobs:

.github/workflows/ubuntu_18.04/install.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ sudo sh -c "apt-get remove -y libproj-dev"
4242
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
4343

4444
# Configure GDAL
45-
CURRENT_DIR=$PWD
46-
cd gdal
4745
./autogen.sh
4846
CC='ccache gcc' CXX='ccache g++' LDFLAGS='-lstdc++' ./configure --prefix=/usr --without-libtool --with-jpeg12 --with-python=/usr/bin/python3 --with-poppler --with-spatialite --with-mysql --with-liblzma --with-webp --with-epsilon --with-proj=/usr/local --with-poppler --with-hdf5 --with-dods-root=/usr --with-sosi --with-mysql --with-rasterlite2 --with-fgdb=/usr
4947
# --enable-debug --with-podofo
@@ -56,7 +54,7 @@ sudo rm -f /usr/lib/libgdal.so*
5654
sudo make install
5755
sudo ldconfig
5856
sudo ln -s libgdal.so /usr/lib/libgdal.so.20
59-
cd "$CURRENT_DIR"
57+
6058
(cd autotest/cpp && make -j3)
6159

6260
ccache -s

.github/workflows/ubuntu_18.04_32bit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Ubuntu 18.04 32bit build
33
on:
44
push:
55
paths-ignore:
6-
- 'gdal/doc/**'
6+
- 'doc/**'
77
pull_request:
88
paths-ignore:
9-
- 'gdal/doc/**'
9+
- 'doc/**'
1010

1111

1212
jobs:

.github/workflows/ubuntu_18.04_32bit/start.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ sudo sh -c "apt-get remove -y libproj-dev"
6868
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
6969

7070
# Configure GDAL
71-
CURRENT_DIR=$PWD
72-
cd gdal
7371
./autogen.sh
7472
CC='ccache gcc' CXX='ccache g++' LDFLAGS='-lstdc++' ./configure --prefix=/usr --without-libtool --with-jpeg12 --with-python=/usr/bin/python3 --with-poppler --with-spatialite --with-mysql --with-liblzma --with-webp --with-epsilon --with-proj=/usr/local --with-poppler --with-hdf5 --with-dods-root=/usr --with-sosi --with-mysql --with-rasterlite2 --enable-debug --with-libtiff=internal --with-hide-internal-symbols
7573

@@ -79,7 +77,7 @@ sudo rm -f /usr/lib/libgdal.so*
7977
sudo make install
8078
sudo ldconfig
8179
sudo ln -s libgdal.so /usr/lib/libgdal.so.20
82-
cd "$CURRENT_DIR"
80+
8381
(cd autotest/cpp && make -j3)
8482

8583
ccache -s

0 commit comments

Comments
 (0)