Check-in [cb5ff1a1e0]
Overview
Comment:Emit links to downloads
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:cb5ff1a1e0a85b37eea94cebcbf81b8b46f43cb5
User & Date: rkeene on 2020-04-01 18:37:57
Other Links: manifest | tags
Context
2020-04-01
19:03
Ensure that pthread condition variable in logging is initialized check-in: f278a98272 user: rkeene tags: trunk
18:37
Emit links to downloads check-in: cb5ff1a1e0 user: rkeene tags: trunk
17:41
Post-release version increment check-in: f55e303e9f user: rkeene tags: trunk
Changes

Modified build/update-wiki from [2d105e6f53] to [ec1a1b5a36].

     5      5   (
     6      6   	echo '<H2>NAME</H2>'
     7      7   	man2html -H linux.die.net -M /man -p "${sourcedir}/filed.1" | \
     8      8   		sed '0,/<H2>NAME<\/H2>/ d;/<H2>Index<\/H2>/,$ d;s@<A HREF="../index.html">Return to Main Contents</A>@@;s@\[@\&#91;@g;s@\]@\&#93;@g' | \
     9      9   		sed '$ d;/^ *$/ d' | \
    10     10   		sed 's@\(http://linux.die.net/man/[^+]*\)+@\1/@'
    11     11   ) | fossil wiki commit Manual
           12  +
           13  +function emit_links() {
           14  +	local releases version filename
           15  +	local platform url
           16  +	local platform_str
           17  +	declare -A version_url
           18  +	declare -A url_platform
           19  +
           20  +	while IFS='/' read -r releases version filename; do
           21  +		platform="$(echo "${filename}" | sed 's@filed-[^-]*-@@')"
           22  +		url="/uv/${releases}/${version}/${filename}"
           23  +
           24  +		version_url["${version}"]+="${url} "
           25  +		url_platform["${url}"]="${platform}"
           26  +	done < <(fossil uv ls | grep '^releases/')
           27  +
           28  +	version_url['1.20']="/raw/filed-1.20-x86_64-redhat5-linux?name=ac52d7b72827e8a59b59c6ef60672e7f7679a7f3 /raw/filed-1.20-x86_64-generic-linux-musl?name=667854fd89867d925fd68144bfc140ed599a7c88 /raw/filed-1.20-i486-slackware-linux?name=d31af3a8af918f3d86bd21356f172d74c2613788 /raw/filed-1.20-mipsel-generic-linux-uclibc?name=9997701dcf0990fdef2b26cfa0b6541ee3d8b3ec /raw/filed-1.20-mips-unknown-linux-musl?name=f57701950166898abaaa4867b93e936a8df089df /raw/filed-1.20-arm-slackware-linux-gnueabi?name=81d528777aa976f7316560bb9622d4da75831266 "
           29  +	url_platform['/raw/filed-1.20-x86_64-redhat5-linux?name=ac52d7b72827e8a59b59c6ef60672e7f7679a7f3']='x86_64-redhat5-linux'
           30  +	url_platform['/raw/filed-1.20-x86_64-generic-linux-musl?name=667854fd89867d925fd68144bfc140ed599a7c88']='x86_64-generic-linux-musl'
           31  +	url_platform['/raw/filed-1.20-i486-slackware-linux?name=d31af3a8af918f3d86bd21356f172d74c2613788']='i486-slackware-linux'
           32  +	url_platform['/raw/filed-1.20-mipsel-generic-linux-uclibc?name=9997701dcf0990fdef2b26cfa0b6541ee3d8b3ec']='mipsel-generic-linux-uclibc'
           33  +	url_platform['/raw/filed-1.20-mips-unknown-linux-musl?name=f57701950166898abaaa4867b93e936a8df089df']='mips-unknown-linux-musl'
           34  +	url_platform['/raw/filed-1.20-arm-slackware-linux-gnueabi?name=81d528777aa976f7316560bb9622d4da75831266']='arm-slackware-linux-gnueabi'
           35  +
           36  +	for version in $(echo "${!version_url[@]}" | xargs -n1 | sort -rV); do
           37  +		echo "   1. Version ${version}:"
           38  +		for url in $(echo ${version_url["${version}"]} | xargs -n1 | sort -d); do
           39  +			platform="${url_platform["${url}"]}"
           40  +
           41  +			case "${platform}" in
           42  +				x86_64-*-linux-musl)
           43  +					platform_str='Linux/x86_64 (static)'
           44  +					;;
           45  +				i?86-*-linux|i?86-*-linux-gnu*)
           46  +					platform_str='Linux/x86'
           47  +					;;
           48  +				mipsel-*-linux-uclibc)
           49  +					platform_str='Linux/MIPS (uClibc)'
           50  +					;;
           51  +				mips-*-linux-musl)
           52  +					platform_str='Linux/MIPS (static)'
           53  +					;;
           54  +				arm-*-linux|arm-*-linux-gnu*)
           55  +					platform_str='Linux/ARM'
           56  +					;;
           57  +				x86_64-*-linux|x86_64-*-linux-gnu*)
           58  +					platform_str='Linux/x86_64'
           59  +					;;
           60  +				aarch64-*-linux|aarch64-*-linux-gnu*)
           61  +					platform_str='Linux/AArch64'
           62  +					;;
           63  +				*)
           64  +					platform_str="${platform}"
           65  +					;;
           66  +			esac
           67  +
           68  +			echo "     1. [${platform_str}](${url})"
           69  +		done
           70  +	done
           71  +}
           72  +
           73  +emit_links
           74  +
           75  +exit 0