aboutsummaryrefslogtreecommitdiff
path: root/Src/external_dependencies/openmpt-trunk/build/svn/test_patch.sh
blob: be55012ff75fa906091b8b2cf65c45bf5dd9746c (plain) (blame)
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
#!/usr/bin/env bash

set -e

rm -rf .testpatch

mkdir .testpatch

cd .testpatch

svn co $(svn info .. | grep ^URL | awk '{print $2;}') .

curl "$1" | patch -p0 --binary

make STRICT=1

make STRICT=1 check

make STRICT=1 clean

make STRICT=1 CONFIG=clang

make STRICT=1 CONFIG=clang check

make STRICT=1 CONFIG=clang clean

cd ..

rm -rf .testpatch

echo "patch OK"