Browse Source

Fix repo links

Signed-off-by: falkTX <falktx@falktx.com>
pull/19/merge
falkTX 2 years ago
parent
commit
f21a5a9dc3
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 23 additions and 21 deletions
  1. +23
    -21
      repo/generate-repo-page.sh

+ 23
- 21
repo/generate-repo-page.sh View File

@@ -120,6 +120,8 @@ for PACKAGE in ${PACKAGES[@]}; do
continue
fi

PACKAGE_BASENAME=$(basename "${PACKAGE_FILENAME}")

PACKAGE_DATA=$(has_data_package "${PACKAGE}" && echo "${PACKAGE}-data" || echo)
if [ -z "${PACKAGE_DATA}" ] && echo "${PACKAGE}" | grep -q -- \-; then
PACKAGE_MAIN=$(echo "${PACKAGE}" | cut -d '-' -f 1)
@@ -137,7 +139,7 @@ for PACKAGE in ${PACKAGES[@]}; do
PACKAGE_HOMEPAGE=$(get_homepage "${PACKAGE_SOURCE}" "${PACKAGE_RVERSION}")
PACKAGE_VCS_PAGE=$(get_vcs_page "${PACKAGE_SOURCE}" "${PACKAGE_RVERSION}")

if echo "${PACKAGE_FILENAME}" | grep -q "carla-bridge-win64_"; then
if echo "${PACKAGE_BASENAME}" | grep -q "carla-bridge-win64_"; then
PACKAGE="carla-bridge-win"
PACKAGE_DESCRIPTION="carla windows bridge"
fi
@@ -225,45 +227,45 @@ for PACKAGE in ${PACKAGES[@]}; do
fi
echo "<tr><td>Downloads:</td><td>"

if echo "${PACKAGE_FILENAME}" | grep -q "carla-bridge-win64_"; then
if echo "${PACKAGE_BASENAME}" | grep -q "carla-bridge-win64_"; then
# amd64
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_FILENAME}\" target=\"_blank\">amd64</a>&nbsp;&nbsp;"
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME}\" target=\"_blank\">amd64</a>&nbsp;&nbsp;"
# i386
PACKAGE_FILENAME_ARCHED=$(echo "${PACKAGE_FILENAME}" | sed "s/-win64_/-win32_/g" | sed "s/_amd64.deb/_i386.deb/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_FILENAME_ARCHED}\" target=\"_blank\">i386</a>&nbsp;&nbsp;(install both)"
PACKAGE_BASENAME_ARCHED=$(echo "${PACKAGE_BASENAME}" | sed "s/-win64_/-win32_/g" | sed "s/_amd64.deb/_i386.deb/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME_ARCHED}\" target=\"_blank\">i386</a>&nbsp;&nbsp;(install both)"

elif echo "${PACKAGE_FILENAME}" | grep -q "carla-vst-wine_"; then
elif echo "${PACKAGE_BASENAME}" | grep -q "carla-vst-wine_"; then
# amd64
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_FILENAME}\" target=\"_blank\">amd64</a>&nbsp;&nbsp;"
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME}\" target=\"_blank\">amd64</a>&nbsp;&nbsp;"
# i386
PACKAGE_FILENAME_ARCHED=$(echo "${PACKAGE_FILENAME}" | sed "s/_amd64.deb/_i386.deb/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_FILENAME_ARCHED}\" target=\"_blank\">i386</a>&nbsp;&nbsp;"
PACKAGE_BASENAME_ARCHED=$(echo "${PACKAGE_BASENAME}" | sed "s/_amd64.deb/_i386.deb/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME_ARCHED}\" target=\"_blank\">i386</a>&nbsp;&nbsp;"

elif echo "${PACKAGE_FILENAME}" | grep -q "wineasio_"; then
elif echo "${PACKAGE_BASENAME}" | grep -q "wineasio_"; then
# amd64
PACKAGE_FILENAME_ARCHED=$(echo "${PACKAGE_FILENAME}" | sed "s/wineasio_/wineasio-amd64_/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_FILENAME_ARCHED}\" target=\"_blank\">amd64</a>&nbsp;&nbsp;"
PACKAGE_BASENAME_ARCHED=$(echo "${PACKAGE_BASENAME}" | sed "s/wineasio_/wineasio-amd64_/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME_ARCHED}\" target=\"_blank\">amd64</a>&nbsp;&nbsp;"
# i386
PACKAGE_FILENAME_ARCHED=$(echo "${PACKAGE_FILENAME}" | sed "s/wineasio_/wineasio-i386_/g" | sed "s/_amd64.deb/_i386.deb/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_FILENAME_ARCHED}\" target=\"_blank\">i386</a>&nbsp;&nbsp;"
PACKAGE_BASENAME_ARCHED=$(echo "${PACKAGE_BASENAME}" | sed "s/wineasio_/wineasio-i386_/g" | sed "s/_amd64.deb/_i386.deb/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME_ARCHED}\" target=\"_blank\">i386</a>&nbsp;&nbsp;"

elif echo "${PACKAGE_FILENAME}" | grep -q "_all.deb"; then
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_FILENAME}\" target=\"_blank\">all</a>&nbsp;&nbsp;"
elif echo "${PACKAGE_BASENAME}" | grep -q "_all.deb"; then
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME}\" target=\"_blank\">all</a>&nbsp;&nbsp;"

else
for ARCH in ${PACKAGES_ARCHS[@]}; do
PACKAGE_FILENAME_ARCHED=$(echo "${PACKAGE_FILENAME}" | sed "s/_amd64.deb/_${ARCH}.deb/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_FILENAME_ARCHED}\" target=\"_blank\">${ARCH}</a>&nbsp;&nbsp;"
PACKAGE_BASENAME_ARCHED=$(echo "${PACKAGE_BASENAME}" | sed "s/_amd64.deb/_${ARCH}.deb/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME_ARCHED}\" target=\"_blank\">${ARCH}</a>&nbsp;&nbsp;"
done
fi

if [ -n "${PACKAGE_DATA}" ]; then
if has_separate_data_package ${PACKAGE}; then
PACKAGE_FILENAME_DATA=$(echo "${PACKAGE_FILENAME}" | sed "s|/${PACKAGE}|/${PACKAGE_DATA}|g" | sed "s/_amd64.deb/_all.deb/g")
PACKAGE_BASENAME_DATA=$(echo "${PACKAGE_BASENAME}" | sed "s|/${PACKAGE}|/${PACKAGE_DATA}|g" | sed "s/_amd64.deb/_all.deb/g")
else
PACKAGE_FILENAME_DATA=$(echo "${PACKAGE_FILENAME}" | sed "s|/${PACKAGE}_|/${PACKAGE_DATA}_|g" | sed "s/_amd64.deb/_all.deb/g")
PACKAGE_BASENAME_DATA=$(echo "${PACKAGE_BASENAME}" | sed "s|/${PACKAGE}_|/${PACKAGE_DATA}_|g" | sed "s/_amd64.deb/_all.deb/g")
fi
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_FILENAME_DATA}\" target=\"_blank\">data</a>"
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME_DATA}\" target=\"_blank\">data</a>"
fi
echo "</td></tr>"
echo "</table></div></div>"


Loading…
Cancel
Save