jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r23111 - in /dev/jackrabbit: check-release.sh create-download-md.sh
Date Wed, 15 Nov 2017 13:11:06 GMT
Author: reschke
Date: Wed Nov 15 13:11:05 2017
New Revision: 23111

Log:
JCR-4212: dump SHA512 when present

Modified:
    dev/jackrabbit/check-release.sh
    dev/jackrabbit/create-download-md.sh

Modified: dev/jackrabbit/check-release.sh
==============================================================================
--- dev/jackrabbit/check-release.sh (original)
+++ dev/jackrabbit/check-release.sh Wed Nov 15 13:11:05 2017
@@ -21,7 +21,6 @@ BASEDIR="`dirname "$0"`"
 DEFAULT_PROFILES="pedantic"
 PROFILES=${RUN_PROFILES:-$DEFAULT_PROFILES}
 MVN_ARGS="-P$PROFILES"
-CLEAN_SVN=".??* .gitignore"
 HASHES="md5 sha1"
 CLEAN_ZIP=""
 
@@ -50,7 +49,6 @@ else
       SRCDIR="filevault-package-maven-plugin-$VERSION"
       TAGURL="https://svn.apache.org/repos/asf/jackrabbit/commons/$COMPONENT/tags/$COMPONENT-$VERSION"
       MVN_ARGS=""
-      CLEAN_SVN=".gitignore"
       HASHES="md5 sha512"
       CLEAN_ZIP="DEPENDENCIES" # the DEPENDENCIES are automatically generated during the
release and are not in svn
     ;;
@@ -61,7 +59,6 @@ else
       SRCDIR="$COMPONENT-$VERSION"
       TAGURL="https://svn.apache.org/repos/asf/jackrabbit/commons/filevault/tags/$COMPONENT-$VERSION"
       MVN_ARGS=""
-      CLEAN_SVN=""
       CLEAN_ZIP=""
       HASHES="md5 sha1 sha512"
     ;;
@@ -189,10 +186,6 @@ mkdir -p "$WORKDIR/svn"
 SVNDIR="$WORKDIR/svn/$SRCDIR"
 svn --quiet export "$TAGURL" "$SVNDIR" 2>> "$LOGFILE" 1>&2 || exit 1
 set -f # disable globbing during pattern loop
-for PATTERN in $CLEAN_SVN; do
-  echo "Cleaning $PATTERN from $SVNDIR" >> "$LOGFILE"
-  find "$SVNDIR" -name "$PATTERN" -print0 | xargs -0 rm -rfv >> "$LOGFILE"
-done
 
 info "   Unzipping $SRCZIP..."
 ZIPDIR="$WORKDIR/zip/$SRCDIR"

Modified: dev/jackrabbit/create-download-md.sh
==============================================================================
--- dev/jackrabbit/create-download-md.sh (original)
+++ dev/jackrabbit/create-download-md.sh Wed Nov 15 13:11:05 2017
@@ -31,9 +31,14 @@ function dumpone {
   size=$(du -m $version/"$1" | cut -f 1)
   printf "    (%dM, %s, [PGP signature]($dl2/%s.asc))\n" $size "$2" "$1"
   sha=$(cat $version/"$1".sha1 | tr -d "\r\n")
-  printf "    <br/>SHA1 checksum: \`%s\`\n" "$sha"
+  printf "    <br/>SHA1   checksum: \`%s\`\n" "$sha"
   md5=$(cat $version/"$1".md5 | tr -d "\r\n")
-  printf "    <br/>MD5  checksum: \`%s\`\n" "$md5"
+  printf "    <br/>MD5    checksum: \`%s\`\n" "$md5"
+  if [ -r $version/"$1".sha512 ]
+  then
+    sha512=$(cat $version/"$1".sha512 | tr -d "\r\n")
+    printf "    <br/>SHA512 checksum: \`%s\`\n" "$sha512"
+  fi
 }
 
 function usage {



Mime
View raw message