bf1d82
#!/bin/bash
bf1d82
bf1d82
set -e
bf1d82
bf1d82
echo ""
bf1d82
echo "download"
bf1d82
echo ""
bf1d82
bf1d82
mkdir -p download && cd download
bf1d82
bf1d82
wget -c https://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.7.tar.gz
bf1d82
wget -c https://s3.amazonaws.com/json-c_releases/releases/json-c-0.12.1.tar.gz
bf1d82
wget -c https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz
bf1d82
bf1d82
cd ..
bf1d82
bf1d82
echo ""
bf1d82
echo "unpack"
bf1d82
echo ""
bf1d82
bf1d82
mkdir -p src && cd src
bf1d82
bf1d82
rm  -rf              gettext-0.19.7
bf1d82
tar -xzf ../download/gettext-0.19.7.tar.gz
bf1d82
rm  -rf              json-c-0.12.1
bf1d82
tar -xzf ../download/json-c-0.12.1.tar.gz
bf1d82
rm  -rf              libiconv-1.15
bf1d82
tar -xzf ../download/libiconv-1.15.tar.gz
bf1d82
bf1d82
echo ""
bf1d82
echo "checkout libmypaint"
bf1d82
echo ""
bf1d82
bf1d82
BRANCH="testing"
bf1d82
if [ -d "libmypaint/.git" ]; then
bf1d82
    cd libmypaint && git fetch && git reset --hard "origin/$BRANCH" && cd ..
bf1d82
else
bf1d82
    git clone https://github.com/blackwarthog/libmypaint.git --branch $BRANCH
bf1d82
fi
bf1d82
bf1d82
cd ..
bf1d82
bf1d82
echo ""
bf1d82
echo "success"
bf1d82
echo ""