aboutsummaryrefslogtreecommitdiff
path: root/get-latest-versions.sh
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-01-26 23:09:00 -0500
committerB. Stack <bgstack15@gmail.com>2022-01-26 23:09:00 -0500
commit339d1e32dc59c0cb5b3b32bef8b7e90f75f69908 (patch)
tree5fcf479b18d550e7520090c7d024b7f823abc440 /get-latest-versions.sh
parentinitial commit (diff)
downloadgtk3-classic-build-build-3.24.31.tar.gz
gtk3-classic-build-build-3.24.31.tar.bz2
gtk3-classic-build-build-3.24.31.zip
version 3.24.31build-3.24.31
Diffstat (limited to 'get-latest-versions.sh')
-rwxr-xr-xget-latest-versions.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/get-latest-versions.sh b/get-latest-versions.sh
new file mode 100755
index 0000000..ad1ba19
--- /dev/null
+++ b/get-latest-versions.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+oldx="$( printf %s\\n "$-" | grep -q -e 'x' && echo YES )"
+set +x # hide this cruft
+test -z "${WORKDIR}" && WORKDIR="$( readlink -f . )"
+export WORKDIR
+RAW_DEB="$( rmadison gtk+3.0 | awk --field-separator='|' '{gsub(" ","");print $2,$2,$3}' | awk '{gsub("-[0-9]+","",$1);print}' | sort -r --sort=version | grep -v debug | head -n1)"
+RAW="$( echo "${RAW_DEB}" | awk '{print $1}' )"
+DEB="$( echo "${RAW_DEB}" | awk '{print $2}' )"
+if ! test "$( cd "${WORKDIR}/gtk3classic" 2>/dev/null && git remote -v | grep -o 'origin https://github.com/lah7/gtk3-classic' | head -n1 )" = "origin https://github.com/lah7/gtk3-classic" ; then
+ git clone "${GTK3CLASSIC_GIT}" "${WORKDIR}/gtk3classic"
+else
+ (
+ cd "${WORKDIR}/gtk3classic"
+ git checkout master
+ git pull --all
+ ) 1>/dev/null 2>&1
+fi
+CLASSIC="$( cd "${WORKDIR}/gtk3classic" ; git tag | sort -r --sort=version | head -n 1 )"
+export DEB RAW CLASSIC
+echo "CLASSIC=${CLASSIC}"
+echo "DEB=${DEB}"
+echo "RAW=${RAW}"
+test "${oldx}" = "YES" && set -x
bgstack15