2022-06-11 17:16:32 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
|
|
|
|
|
|
|
source environment
|
2022-06-11 18:47:24 +02:00
|
|
|
VERSION=$(wget -q -O - $dl_prefix/ | grep -o "$1.[0-9]" | tail -1)
|
2022-06-12 11:37:57 +02:00
|
|
|
current=$(aptly repo search bashclub python$1 | grep $VERSION)
|
|
|
|
if [ $? -gt 0 ]; then
|
2022-06-12 11:35:31 +02:00
|
|
|
echo "Building new version of python$1."
|
|
|
|
./builder $VERSION
|
|
|
|
else
|
2022-06-12 11:37:57 +02:00
|
|
|
echo "Current release $VERSION already present in repo. Skipping build."
|
2022-06-12 11:35:31 +02:00
|
|
|
fi
|