You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2016/07/18 12:52:04 UTC

svn commit: r14455 - /dev/jackrabbit/create-download-md.sh

Author: reschke
Date: Mon Jul 18 12:52:03 2016
New Revision: 14455

Log:
work-in-progress: script to generate markdown fragments for downloads.md

Added:
    dev/jackrabbit/create-download-md.sh   (with props)

Added: dev/jackrabbit/create-download-md.sh
==============================================================================
--- dev/jackrabbit/create-download-md.sh (added)
+++ dev/jackrabbit/create-download-md.sh Mon Jul 18 12:52:03 2016
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+##    Licensed to the Apache Software Foundation (ASF) under one or more
+##    contributor license agreements.  See the NOTICE file distributed with
+##    this work for additional information regarding copyright ownership.
+##    The ASF licenses this file to You under the Apache License, Version 2.0
+##    (the "License"); you may not use this file except in compliance with
+##    the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##    Unless required by applicable law or agreed to in writing, software
+##    distributed under the License is distributed on an "AS IS" BASIS,
+##    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##    See the License for the specific language governing permissions and
+##    limitations under the License.
+
+## EXPERIMENTAL script to generate the markdown snippet describing
+## the download; currently hardwired for full Jackrabbit releases,
+## with the version string below. Feel free to work on parameter
+## support and extensions for Oak releases as well.
+
+site="http://www.apache.org/dist/jackrabbit"
+version="2.13.1"
+dl1="http://www.apache.org/dyn/closer.lua/jackrabbit/$version"
+dl2="http://www.apache.org/dist/jackrabbit/$version"
+
+function dumpone {
+  printf "\n* [%s]($dl1/%s)\n" "$1" "$1"
+  size=$(du -m $version/"$1" | cut -f 1)
+  printf "    (%dM, %s, [PGP signature]($dl2/%s.asc))\n" $size "$2" "$1"
+  sha=$(cat $version/"$1".sha | tr -d "\r\n")
+  printf "    <br/>SHA1 checksum: \`%s\`\n" "$sha"
+  md5=$(cat $version/"$1".md5 | tr -d "\r\n")
+  printf "    <br/>MD5  checksum: \`%s\`\n" "$md5"
+}
+
+printf "See the [full release notes](%s/%s/RELEASE-NOTES.txt) for more details.\n" $site $version
+
+dumpone "jackrabbit-$version-src.zip" "source zip"
+dumpone "jackrabbit-standalone-$version.jar" "standalone server"
+dumpone "jackrabbit-webapp-$version.war" "web application"
+dumpone "jackrabbit-jca-$version.rar" "JCA resource adapter"
+
+
+
+

Propchange: dev/jackrabbit/create-download-md.sh
------------------------------------------------------------------------------
    svn:executable = *