ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1588178 - /ace/trunk/etc/check_staged_ace.sh
Date Thu, 17 Apr 2014 09:01:10 GMT
Author: jawi
Date: Thu Apr 17 09:01:10 2014
New Revision: 1588178

URL: http://svn.apache.org/r1588178
Log:
Minor corrections for bash.

Modified:
    ace/trunk/etc/check_staged_ace.sh

Modified: ace/trunk/etc/check_staged_ace.sh
URL: http://svn.apache.org/viewvc/ace/trunk/etc/check_staged_ace.sh?rev=1588178&r1=1588177&r2=1588178&view=diff
==============================================================================
--- ace/trunk/etc/check_staged_ace.sh (original)
+++ ace/trunk/etc/check_staged_ace.sh Thu Apr 17 09:01:10 2014
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
@@ -43,7 +43,7 @@ if [ -z "${version}" -o ! -d "${tmpDir}"
     exit
 fi
 
-function checkSig() {
+checkSig() {
     sigFile="$1.asc"
     if [ ! -f $sigFile ]; then
         echo "$sigFile is missing!!!"
@@ -54,7 +54,7 @@ function checkSig() {
     if [ "$?" = "0" ]; then echo "OK"; else echo "BAD!!!"; fi
 }
 
-function checkSum() {
+checkSum() {
     archive=$1
     sumFile=$2
     alg=$3
@@ -105,12 +105,13 @@ cd ${tmpDir}/apache-ace-${version}
 for f in `find . -type f | grep -v '\.\(asc\|sha1\?\|md5\)$'`; do
     echo "checking $f" 
 
-    echo "\tASC: \c"
+    echo -e "    ASC: \c"
     checkSig $f
-    echo "\tMD5: \c"
+    echo -e "    MD5: \c"
     checkSum $f "$f.md5" MD5
-    echo "\tSHA: \c"
+    echo -e "    SHA: \c"
     checkSum $f "$f.sha" SHA512
+    echo ""
 done
 
 cd $PWD



Mime
View raw message