|
|
@ -4,6 +4,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# do this only for the gcc run
|
|
|
|
|
|
|
|
if [ "$CC" != "gcc" ]; then
|
|
|
|
|
|
|
|
echo "skipped upload because $CC != gcc"
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
VERSION=$(ls fping-*.tar.gz | sed -e 's/^fping-//' | sed -e 's/\.tar\.gz$//')
|
|
|
|
VERSION=$(ls fping-*.tar.gz | sed -e 's/^fping-//' | sed -e 's/\.tar\.gz$//')
|
|
|
|
if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then
|
|
|
|
if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then
|
|
|
|
REPO=release
|
|
|
|
REPO=release
|
|
|
@ -11,3 +17,4 @@ else
|
|
|
|
REPO=beta
|
|
|
|
REPO=beta
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
curl -T fping-$VERSION.tar.gz -uschweikert:$BINTRAY_API_KEY https://api.bintray.com/content/schweikert/$REPO/fping/$VERSION/fping-$VERSION.tar.gz
|
|
|
|
curl -T fping-$VERSION.tar.gz -uschweikert:$BINTRAY_API_KEY https://api.bintray.com/content/schweikert/$REPO/fping/$VERSION/fping-$VERSION.tar.gz
|
|
|
|
|
|
|
|
echo "bintray deployment successful."
|
|
|
|