File: resync_from_upstream.sh

package info (click to toggle)
gdal 3.11.3%2Bdfsg-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 89,016 kB
  • sloc: cpp: 1,165,048; ansic: 208,864; python: 26,958; java: 5,972; xml: 4,611; sh: 3,776; cs: 2,508; yacc: 1,306; makefile: 213
file content (33 lines) | stat: -rwxr-xr-x 672 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

set -eu

SCRIPT_DIR=$(dirname "$0")
case $SCRIPT_DIR in
    "/"*)
        ;;
    ".")
        SCRIPT_DIR=$(pwd)
        ;;
    *)
        SCRIPT_DIR=$(pwd)/$(dirname "$0")
        ;;
esac
cd "${SCRIPT_DIR}"

rm -rf tmp_libgeotiff
git clone --depth 1 https://github.com/OSgeo/libgeotiff tmp_libgeotiff
for i in *.c; do
  if test "$i" != "xtiff.c"; then
    echo "Resync $i"
    cp tmp_libgeotiff/libgeotiff/$i .
  fi
done
for i in *.h; do
  if test "$i" != "gdal_libgeotiff_symbol_rename.h" -a "$i" != "geo_config.h" -a "$i" != "cpl_serv.h" -a "$i" != "xtiffio.h"; then
    echo "Resync $i"
    cp tmp_libgeotiff/libgeotiff/$i .
  fi
done

rm -rf tmp_libgeotiff