winamp/Src/external_dependencies/openmpt-trunk/build/svn/test_patch.sh

32 lines
365 B
Bash
Raw Normal View History

2024-09-24 14:54:57 +02:00
#!/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"