Debian Codegraph @

frmts/gtiff/libgeotiff/resync_from_upstream.sh

raw
1 #!/bin/sh
2
3 set -eu
4
5 SCRIPT_DIR=$(dirname "$0")
6 case $SCRIPT_DIR in
7 "/"*)
8 ;;
9 ".")
10 SCRIPT_DIR=$(pwd)
11 ;;
12 *)
13 SCRIPT_DIR=$(pwd)/$(dirname "$0")
14 ;;
15 esac
16 cd "${SCRIPT_DIR}"
17
18 rm -rf tmp_libgeotiff
19 git clone --depth 1 https://github.com/OSgeo/libgeotiff tmp_libgeotiff
20 for i in *.c; do
21 if test "$i" != "xtiff.c"; then
22 echo "Resync $i"
23 cp tmp_libgeotiff/libgeotiff/$i .
24 fi
25 done
26 for i in *.h; do
27 if test "$i" != "gdal_libgeotiff_symbol_rename.h" -a "$i" != "geo_config.h" -a "$i" != "cpl_serv.h" -a "$i" != "xtiffio.h"; then
28 echo "Resync $i"
29 cp tmp_libgeotiff/libgeotiff/$i .
30 fi
31 done
32
33 rm -rf tmp_libgeotiff