aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-11-14 08:38:29 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-11-14 08:38:32 +0100
commitb284c1ce70cd5b3bc96bfa50d649c6ca1f2920dd (patch)
tree1485a78bfa258d42551830a2c86dcf0db4779178
parentbb83c3fd9c87c3c97f7450b4e9404f063cb75408 (diff)
downloadlibrb-b284c1ce70cd5b3bc96bfa50d649c6ca1f2920dd.tar.gz
librb-b284c1ce70cd5b3bc96bfa50d649c6ca1f2920dd.tar.bz2
librb-b284c1ce70cd5b3bc96bfa50d649c6ca1f2920dd.zip
gen-download-page: add sha1 links
no_buildbot
-rwxr-xr-xgen-download-page.sh24
1 files changed, 16 insertions, 8 deletions
diff --git a/gen-download-page.sh b/gen-download-page.sh
index e37a4cb..b1abd30 100755
--- a/gen-download-page.sh
+++ b/gen-download-page.sh
@@ -35,7 +35,8 @@ echo "&nbsp;&nbsp;&nbsp;&nbsp;gpg --recv-keys 63D0C3DB42AF3B4FCF6E7880E84A7E61C7
echo "Then you can verify downloaded image with command<br><br>"
echo "&nbsp;&nbsp;&nbsp;&nbsp;gpg --verify &lt;sig-file&gt; &lt;package-file&gt;"
echo "</p><p>"
-echo "All files can also be downloaded from: <a href=\"${remote}/\">${remote}</a><br>"
+echo "All files (including md5, sha256 and sha512 for all files) can also"
+echo "be downloaded from: <a href=\"${remote}/\">${remote}</a><br>"
echo "</p>"
echo "<h1>git</h1>"
echo "<p>"
@@ -54,13 +55,16 @@ versions="$(echo "${files}" | tr ' ' '\n' | rev | \
for v in ${versions}
do
- printf "%-10s%s(%s) %s(%s) %s(%s)" "${v}" \
+ printf "%-10s%s(%s|%s) %s(%s|%s) %s(%s|%s)\n" "${v}" \
"<a href=\"${remote}/${project}-${v}.tar.gz\">tar.gz</a>" \
"<a href=\"${remote}/${project}-${v}.tar.gz.sig\">s</a>" \
+ "<a href=\"${remote}/${project}-${v}.tar.gz.sha1\">sha1</a>" \
"<a href=\"${remote}/${project}-${v}.tar.bz2\">tar.bz2</a>" \
"<a href=\"${remote}/${project}-${v}.tar.bz2.sig\">s</a>" \
+ "<a href=\"${remote}/${project}-${v}.tar.bz2.sha1\">sha1</a>" \
"<a href=\"${remote}/${project}-${v}.tar.xz\">tar.xz</a>" \
- "<a href=\"${remote}/${project}-${v}.tar.xz.sig\">s</a>"
+ "<a href=\"${remote}/${project}-${v}.tar.xz.sig\">s</a>" \
+ "<a href=\"${remote}/${project}-${v}.tar.xz.sha1\">sha1</a>"
done
echo "</pre>"
@@ -107,9 +111,10 @@ do
debian)
ABI="$(echo "${v}" | cut -f1 -d.)"
- printf "%-10s%s(%s) %s(%s) %s(%s) %s(%s) %s(%s) %s(%s)\n" "${v}" \
+ printf "%-10s%s(%s|%s) %s(%s) %s(%s) %s(%s) %s(%s) %s(%s)\n" "${v}" \
"<a href=\"${remote}/${d}/${a}/${project}${ABI}_${v}_${a}.deb\">deb</a>" \
"<a href=\"${remote}/${d}/${a}/${project}${ABI}_${v}_${a}.deb.sig\">s</a>" \
+ "<a href=\"${remote}/${d}/${a}/${project}${ABI}_${v}_${a}.deb.sha1\">sha1</a>" \
"<a href=\"${remote}/${d}/${a}/${project}${ABI}-dbgsym_${v}_${a}.deb\">dbgsym</a>" \
"<a href=\"${remote}/${d}/${a}/${project}${ABI}-dbgsym_${v}_${a}.deb.sig\">s</a>" \
"<a href=\"${remote}/${d}/${a}/${project}-dev_${v}_${a}.deb\">dev</a>" \
@@ -124,9 +129,10 @@ do
ubuntu)
ABI="$(echo "${v}" | cut -f1 -d.)"
- printf "%-10s%s(%s) %s(%s) %s(%s) %s(%s) %s(%s) %s(%s)\n" "${v}" \
+ printf "%-10s%s(%s|%s) %s(%s) %s(%s) %s(%s) %s(%s) %s(%s)\n" "${v}" \
"<a href=\"${remote}/${d}/${a}/${project}${ABI}_${v}_${a}.deb\">deb</a>" \
"<a href=\"${remote}/${d}/${a}/${project}${ABI}_${v}_${a}.deb.sig\">s</a>" \
+ "<a href=\"${remote}/${d}/${a}/${project}${ABI}_${v}_${a}.deb.sha1\">sha1</a>" \
"<a href=\"${remote}/${d}/${a}/${project}${ABI}-dbgsym_${v}_${a}.ddeb\">dbgsym</a>" \
"<a href=\"${remote}/${d}/${a}/${project}${ABI}-dbgsym_${v}_${a}.ddeb.sig\">s</a>" \
"<a href=\"${remote}/${d}/${a}/${project}-dev_${v}_${a}.deb\">dev</a>" \
@@ -140,9 +146,10 @@ do
;;
rhel|centos|opensuse|fedora)
- printf "%-10s%s(%s) %s(%s) %s(%s)\n" "${v}" \
+ printf "%-10s%s(%s|%s) %s(%s) %s(%s)\n" "${v}" \
"<a href=\"${remote}/${d}/${a}/${project}-${v}-1.${a}.rpm\">rpm</a>" \
"<a href=\"${remote}/${d}/${a}/${project}-${v}-1.${a}.rpm.sig\">s</a>" \
+ "<a href=\"${remote}/${d}/${a}/${project}-${v}-1.${a}.rpm.sha1\">sha1</a>" \
"<a href=\"${remote}/${d}/${a}/${project}-debuginfo-${v}-1.${a}.rpm\">dbginfo</a>" \
"<a href=\"${remote}/${d}/${a}/${project}-debuginfo-${v}-1.${a}.rpm.sig\">s</a>" \
"<a href=\"${remote}/${d}/${a}/${project}-devel-${v}-1.${a}.rpm\">devel</a>" \
@@ -150,9 +157,10 @@ do
;;
slackware)
- printf "%-10s%s(%s)\n" "${v}" \
+ printf "%-10s%s(%s|%s)\n" "${v}" \
"<a href=\"${remote}/${d}/${a}/${project}-${v}.${a}-1.tgz\">tgz</a>" \
- "<a href=\"${remote}/${d}/${a}/${project}-${v}.${a}-1.tgz.sig\">s</a>"
+ "<a href=\"${remote}/${d}/${a}/${project}-${v}.${a}-1.tgz.sig\">s</a>" \
+ "<a href=\"${remote}/${d}/${a}/${project}-${v}.${a}-1.tgz.sha1\">sha1</a>"
;;
esac
done