diff options
author | Erich Eckner <git@eckner.net> | 2021-03-25 11:15:38 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-03-25 11:15:38 +0100 |
commit | b91e4a49a60836078a081b66005c32449c44eeee (patch) | |
tree | bd0092ee3b465f44a401f68bd0bf732382d588c2 /checkVersions | |
parent | 86179698e9e51f9ce2de896741320d61a003be1a (diff) | |
download | archlinuxewe-b91e4a49a60836078a081b66005c32449c44eeee.tar.xz |
checkVersions: fix quotes
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/checkVersions b/checkVersions index c3fe5cc0b..27e30004b 100755 --- a/checkVersions +++ b/checkVersions @@ -107,8 +107,8 @@ extract_sourceforge_file_list() { ' } -me="$(readlink -f $0)" -cd $(dirname "${me}") +me=$(readlink -f $0) +cd "$(dirname "${me}")" versionenDatei="/var/cache/$(basename "$(dirname "${me}")")/lastVersions" curl_cache="/var/cache/$(basename "$(dirname "${me}")")/curl-cache" jobs=50 @@ -189,7 +189,7 @@ if [ $# -eq 0 ] then if ${versionenSchreiben} then - tmpFile="$(mktemp /tmp/versionen.XXXXXX)" + tmpFile=$(mktemp /tmp/versionen.XXXXXX) date "+%s" > "${tmpFile}" set -o pipefail if ${archlinuxewe}; then @@ -461,11 +461,11 @@ then elif echo "${src}" | \ grep -q '//www\.abisource\.com/' then - quVer="$( + quVer=$( echo "${src}" | \ sed 's|\(/[^/]\+\)\{3\}$|/|' - )" - remVer="$( + ) + remVer=$( curl_it "${quVer}" | \ tr '<>' '\n' | \ sed -n ' @@ -474,15 +474,15 @@ then p ' | \ latest_version - )" + ) elif echo "${src}" | \ grep -q '//download\.virtualbox\.org/' then - quVer="$( + quVer=$( echo "${src}" | \ sed 's|/[^/]\+/[^/]\+$||' - )" - remVer="$( + ) + remVer=$( curl_it "${quVer}/" | \ sed -n ' s,^.*<a href="\([0-9.]\+\)/">.*$,\1, @@ -490,7 +490,7 @@ then p ' | \ latest_version - )" + ) elif echo "${src}" | \ grep -q "//raw\.githubusercontent\.com/qemu/qemu/"; then sum=$( @@ -510,15 +510,15 @@ then grep -q "//www\.mpich\.org/" then quVer="${src%/*/*}/" - aVers="$( + aVers=$( curl_it "${quVer}" | \ tr '"' '\n' | \ grep '^[0-9.]\+/$' | \ sed 's|/$||' - )" + ) if [ ! "${pkgname}" == "mpich" ] then - aVers="$( + aVers=$( ( echo "${aVers}" echo "${pkgname#mpich} %%%SCHNIPP%%%" @@ -526,12 +526,12 @@ then sort -V | \ sed '/%%%SCHNIPP%%%/q' | \ grep -v '%%%SCHNIPP%%%' - )" + ) fi - remVer="$( + remVer=$( echo "${aVers}" | \ latest_version - )" + ) elif echo "${src}" | \ grep -q '^git://anonscm\.debian\.org/\|^git\(+https\?\)\?://git\(hub\.com\|\.archlinux32\.org\)/.*#tag=' then @@ -594,41 +594,41 @@ then s|^.*/|| ' ) - remVer="$( + remVer=$( curl_it "${qu}" | \ tr '"' '\n' | \ grep "^/project/\(python-\)\?${_pkgname}/[0-9.-]\+/\$" | \ sed "s|^/project/\(python-\)\?${_pkgname}/\([0-9.-]\+\)/\$|\2|" | \ latest_version - )" - remHash="$( + ) + remHash=$( curl_it "${qu}${remVer}/" | \ tr '"#' '\n' | \ sponge | \ grep -m1 "^https://files\.pythonhosted\.org/packages/.*/[0-9a-f]\{60\}/${_pkgname}-${remVer}\.tar\.\(gz\|bz2\|xz\)\$" | \ sed 's|/[^/]\+$|/|; s|^https://files\.pythonhosted\.org/packages/|/|' - )" - locHash="$( + ) + locHash=$( echo "${src}" | \ sed 's|/[^/]\+$|/|; s|^https://pypi\.python\.org/packages/|/|' - )" + ) ${maschinenlesbar} && \ [ "${remHash}" != "${locHash}" ] && \ echo "sed_extra='s@${locHash}@${remHash}@g;'" elif echo "${src}" | \ grep -q "//bundles\.openttdcoop\.org/" then - qu="$( + qu=$( echo "${src}" | \ sed 's|^\(https\?://\([^/]\+/\)\{3\}\).*$|\1|' - )" - remVer="$( + ) + remVer=$( curl_it "${qu}" | \ tr "\"" "\n" | \ grep '^[0-9.]\+/$' | \ sed 's|/$||' | \ latest_version - )" + ) elif echo "${src}" | \ grep -q "//git\.eckner\.net/" then @@ -862,7 +862,7 @@ then quNam="${quNam%-*}" quNAM="${src#${quVer}}" quNAM="${quNAM%%.*}" - quNAM="$(echo "${quNAM}" | tr '[:lower:]' '[:upper:]')" + quNAM=$(echo "${quNAM}" | tr '[:lower:]' '[:upper:]') remVer=$( curl_it "${quVer}" \ | tr '"' '\n' \ @@ -887,18 +887,18 @@ then elif echo "${src}" | \ grep -q 'https://bitbucket\.org/.*/get/[^/]\+$' then - srcPreNam="$( + srcPreNam=$( echo "${src}" | \ sed 's|^.*/\([^/0-9]\+[-_]\)[0-9][^/]\+$|\1|' - )" - srcEndg="$( + ) + srcEndg=$( echo "${src}" | \ sed ' s|^.*\(\.tar[^/]*\)$|\1| s|\.|\\.|g ' - )" - remVer="$( + ) + remVer=$( curl_it "${src%/get/*}/downloads/?tab=tags" | \ tr '"' '\n' | \ sed ' @@ -908,7 +908,7 @@ then ' | \ tr -- '-_' '.' | \ latest_version - )" + ) elif echo "${src}" | \ grep -q '^https\?://lilypond\.org/' then @@ -1008,7 +1008,7 @@ then ver_match='[0-9._]\+[a-z]\?' fi if [ "${pkgname}" = 'spatialite-tools' ]; then - ver_match="$( + ver_match=$( tar -Oxzf /var/lib/pacman/sync/community.db --wildcards 'libspatialite-*-*/desc' \ | sed -n ' /^%VERSION%/ { @@ -1018,7 +1018,7 @@ then p } ' - )${ver_match}" + )"${ver_match}" fi remVer=$( \ curl_it "${quVer}" | \ @@ -1073,17 +1073,17 @@ then elif echo "${src}" | \ grep -q "http://www\.mkgmap\.org\.uk/download" then - remUrl="$( + remUrl=$( echo "${src}" | \ sed 's|-r[0-9]\+\.zip$|.html|' - )" - remVer="r$( + ) + remVer=r$( curl_it "${remUrl}" | \ grep '"text: current()\.version"' | \ tr '<>' '\n' | grep '^[0-9]\+$' | \ latest_version - )" + ) elif echo "${src}" | \ grep -qF '//www.roguetemple.com/' then |