#!/bin/bash

VERSION=$1

rm -rf gsoap-*.tar.?z

echo "Downloading gsoap-$VERSION..."

wget "https://sourceforge.net/projects/gsoap2/files/gsoap_${VERSION}.zip/download" -O gsoap_${VERSION}.zip

unzip gsoap_${VERSION}.zip

mv gsoap-2.8 gsoap-$VERSION

tar cf gsoap-$VERSION.tar gsoap-$VERSION
plzip -9 gsoap-$VERSION.tar

rm -rf gsoap-$VERSION gsoap_$VERSION.zip
