Last active
March 31, 2021 20:42
-
-
Save chapulina/52cb0ea5ef104c4f031753336cec68ef to your computer and use it in GitHub Desktop.
Release status table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LIBS=( | |
"libignition-cmake2-dev_2.7.0" | |
"libignition-math6_6.8.0" | |
"libignition-utils1_1.0.0" | |
"libignition-tools-dev_1.1.0" | |
"libignition-common4_4.0.0" | |
"libsdformat11_11.0.0" | |
"libignition-msgs7_7.0.0" | |
"libignition-transport10_10.0.0" | |
"libignition-fuel-tools5_5.0.0" | |
"libignition-plugin_1.2.0" | |
"libignition-rendering5_5.0.0" | |
"libignition-physics4_4.0.0" | |
"libignition-sensors5_5.0.0" | |
"libignition-gui5_5.0.0" | |
"libignition-gazebo5_5.0.0" | |
"libignition-launch4_4.0.0" | |
"ignition-edifice_1.0.0" | |
) | |
ARCHS=( "amd64" "i386" "arm64" "armhf") | |
DISTROS=( "ubuntu" "debian" ) | |
COLUMN=" " | |
for LIB in "${LIBS[@]}" | |
do | |
echo -e "\e[107m\e[90m${LIB}\e[49m\e[39m" | |
LIB_NO_VERSION=${LIB%%_*} | |
LIB_NO_VERSION=${LIB_NO_VERSION#"lib"} | |
LIB_NO_VERSION=${LIB_NO_VERSION%%-dev*} | |
INITIAL=${LIB_NO_VERSION::1} | |
for DISTRO in "${DISTROS[@]}" | |
do | |
if [[ $DISTRO == "ubuntu" ]]; then | |
VERS=( "bionic" "focal" ) | |
else | |
VERS=( "buster" ) # "sid" | |
fi | |
for VER in "${VERS[@]}" | |
do | |
PADDED_VER=$VER | |
PADDED_VER="${PADDED_VER:0:8}${COLUMN:0:$((8 - ${#PADDED_VER}))}" | |
echo -n "$PADDED_VER" | |
for ARCH in "${ARCHS[@]}" | |
do | |
PADDED_ARCH=$ARCH | |
PADDED_ARCH="${PADDED_ARCH:0:8}${COLUMN:0:$((8 - ${#PADDED_ARCH}))}" | |
echo -n " " | |
if [[ $ARCH == "i386" && $VER == "focal" ]]; then | |
echo -n -e "\e[100m$PADDED_ARCH\e[49m" | |
continue | |
fi | |
REV=1 | |
SUCCESS=false | |
while [ $REV -le 3 ] | |
do | |
URL=http://packages.osrfoundation.org/gazebo/${DISTRO}-stable/pool/main/${INITIAL}/${LIB_NO_VERSION}/${LIB}-${REV}~${VER}_${ARCH}.deb | |
# echo "Checking [$URL]" | |
if curl --head --silent --fail $URL > /dev/null; | |
then | |
SUCCESS=true | |
break | |
fi | |
((REV++)) | |
done | |
if [ "$SUCCESS" = true ] | |
then | |
echo -n -e "\e[42m$PADDED_ARCH\e[49m" | |
else | |
echo -n -e "\e[101m$PADDED_ARCH\e[49m" | |
fi | |
done | |
echo "" | |
done | |
done | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $1 = "citadel" ]; then | |
LIBS=( | |
"libignition-cmake2-dev_2.5.0-1" | |
"libignition-math6_6.6.0-1" | |
"libignition-common3_3.6.1-1" | |
"libignition-tools-dev_1.0.0-1" | |
"libignition-msgs6_6.0.0-1" | |
"libignition-transport8_8.1.0-1" | |
"libignition-fuel-tools4_4.2.1-2" | |
"libignition-plugin_1.1.0-1" | |
"libignition-rendering3_3.2.0-3" | |
"libignition-physics2_2.3.0-1" | |
"libignition-sensors3_3.0.0-1" | |
"libignition-gui3_3.3.0-1" | |
"libignition-gazebo3_3.4.0-1" | |
"libignition-launch2_2.1.0-1" | |
"ignition-citadel_1.0.1-1" | |
) | |
else | |
LIBS=( | |
"libignition-cmake2-dev_2.5.0-1" | |
"libignition-math6_6.6.0-1" | |
"libignition-common3_3.6.1-1" | |
"libignition-tools-dev_1.0.0-1" | |
"libignition-msgs6_6.0.0-1" | |
"libignition-transport9_9.0.0-1" | |
"libignition-fuel-tools5_5.0.0-1" | |
"libignition-plugin_1.1.0-1" | |
"libignition-rendering4_4.0.0-1" | |
"libignition-physics3_3.0.0-1" | |
"libignition-sensors4_4.0.0-1" | |
"libignition-gui4_4.0.0-1" | |
"libignition-gazebo4_4.0.0-1" | |
"libignition-launch3_3.0.0-1" | |
"ignition-dome_1.0.0-1" | |
) | |
fi | |
ARCHS=( "amd64" "i386" "arm64" "armhf") | |
DISTROS=( "ubuntu" "debian" ) | |
COLUMN=" " | |
for LIB in "${LIBS[@]}" | |
do | |
echo -e "\e[107m\e[90m${LIB}\e[49m\e[39m" | |
LIB_NO_VERSION=${LIB%%_*} | |
LIB_NO_VERSION=${LIB_NO_VERSION#"lib"} | |
LIB_NO_VERSION=${LIB_NO_VERSION%%-dev*} | |
for DISTRO in "${DISTROS[@]}" | |
do | |
if [[ $DISTRO == "ubuntu" ]]; then | |
VERS=( "bionic" "focal" ) | |
else | |
VERS=( "buster" ) # "sid" | |
fi | |
for VER in "${VERS[@]}" | |
do | |
PADDED_VER=$VER | |
PADDED_VER="${PADDED_VER:0:8}${COLUMN:0:$((8 - ${#PADDED_VER}))}" | |
echo -n "$PADDED_VER" | |
for ARCH in "${ARCHS[@]}" | |
do | |
PADDED_ARCH=$ARCH | |
PADDED_ARCH="${PADDED_ARCH:0:8}${COLUMN:0:$((8 - ${#PADDED_ARCH}))}" | |
echo -n " " | |
if [[ $ARCH == "i386" && $VER == "focal" ]]; then | |
echo -n -e "\e[100m$PADDED_ARCH\e[49m" | |
continue | |
fi | |
URL=http://packages.osrfoundation.org/gazebo/${DISTRO}-stable/pool/main/i/${LIB_NO_VERSION}/${LIB}~${VER}_${ARCH}.deb | |
#echo "Checking [$URL]" | |
if curl --head --silent --fail $URL > /dev/null; | |
then | |
echo -n -e "\e[42m$PADDED_ARCH\e[49m" | |
else | |
echo -n -e "\e[101m$PADDED_ARCH\e[49m" | |
fi | |
done | |
echo "" | |
done | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment