blob: a2c1629038c452be02a6eb77d31d3a07c136bc54 (
plain)
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
|
#!/bin/bash
set -e
function usage {
echo "2Geom sync to upstream script"
echo "Usage: $0 path/to/2geom/checkout/dir"
}
if [ "x$(which rsync)" = "x" ]; then
echo "rsync not found on your system, please install it"
exit 1
fi
if [ "x$1" = "x" ]; then
usage $0
exit 64
fi
if [ ! -d "$1" ]; then
usage $0
exit 64
fi
if [ ! -f "$1/src/2geom/path.h" ]; then
usage $0
exit 64
fi
INK_2GEOM="$(dirname $0)/"
UPSTREAM_2GEOM="$1/src/2geom/"
rsync -r --existing \
--exclude CMakeLists.txt --exclude sync.sh \
"$UPSTREAM_2GEOM" "$INK_2GEOM"
|