You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2018/06/25 12:53:14 UTC
svn commit: r1834316 - /jena/dist/chksum
Author: rvesse
Date: Mon Jun 25 12:53:14 2018
New Revision: 1834316
URL: http://svn.apache.org/viewvc?rev=1834316&view=rev
Log:
Trim leading ./ from filenames passed to SHA 512
Modified:
jena/dist/chksum
Modified: jena/dist/chksum
URL: http://svn.apache.org/viewvc/jena/dist/chksum?rev=1834316&r1=1834315&r2=1834316&view=diff
==============================================================================
--- jena/dist/chksum (original)
+++ jena/dist/chksum Mon Jun 25 12:53:14 2018
@@ -34,8 +34,9 @@ function chksum() {
fi
if [[ ! -e "$F.sha512" ]]
then
- ## Baseman only
+ ## Basename only
$SUM $F
+ echo "Added SHA512 checksum for $F"
else
true
echo "Checksum already exists: $F"
@@ -47,6 +48,12 @@ FILES=$(find . -name \*.md5)
for F in $FILES
do
B="${F%.md5}"
+
+ # Some OSes/find implementations may output paths relative to the current directory
+ #Â thus resulting in ./ being prefixed to the filenames. Therefore remove leading
+ # ./ if present so the hash file only contains the hash and the raw filename
+ B=${B##\./}
+
chksum "$B"
# echo $B
done