@@ -164,8 +164,6 @@ if [[ "$1" == "package" ]]; then
164164 tar cvzf spark-$SPARK_VERSION .tgz spark-$SPARK_VERSION
165165 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour --output spark-$SPARK_VERSION .tgz.asc \
166166 --detach-sig spark-$SPARK_VERSION .tgz
167- echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md MD5 spark-$SPARK_VERSION .tgz > \
168- spark-$SPARK_VERSION .tgz.md5
169167 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \
170168 SHA512 spark-$SPARK_VERSION .tgz > spark-$SPARK_VERSION .tgz.sha512
171169 rm -rf spark-$SPARK_VERSION
@@ -215,9 +213,6 @@ if [[ "$1" == "package" ]]; then
215213 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour \
216214 --output $R_DIST_NAME .asc \
217215 --detach-sig $R_DIST_NAME
218- echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \
219- MD5 $R_DIST_NAME > \
220- $R_DIST_NAME .md5
221216 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \
222217 SHA512 $R_DIST_NAME > \
223218 $R_DIST_NAME .sha512
@@ -234,9 +229,6 @@ if [[ "$1" == "package" ]]; then
234229 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour \
235230 --output $PYTHON_DIST_NAME .asc \
236231 --detach-sig $PYTHON_DIST_NAME
237- echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \
238- MD5 $PYTHON_DIST_NAME > \
239- $PYTHON_DIST_NAME .md5
240232 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \
241233 SHA512 $PYTHON_DIST_NAME > \
242234 $PYTHON_DIST_NAME .sha512
@@ -247,9 +239,6 @@ if [[ "$1" == "package" ]]; then
247239 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour \
248240 --output spark-$SPARK_VERSION -bin-$NAME .tgz.asc \
249241 --detach-sig spark-$SPARK_VERSION -bin-$NAME .tgz
250- echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \
251- MD5 spark-$SPARK_VERSION -bin-$NAME .tgz > \
252- spark-$SPARK_VERSION -bin-$NAME .tgz.md5
253242 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --print-md \
254243 SHA512 spark-$SPARK_VERSION -bin-$NAME .tgz > \
255244 spark-$SPARK_VERSION -bin-$NAME .tgz.sha512
@@ -382,18 +371,11 @@ if [[ "$1" == "publish-release" ]]; then
382371 find . -type f | grep -v \. jar | grep -v \. pom | xargs rm
383372
384373 echo " Creating hash and signature files"
385- # this must have .asc, .md5 and .sha1 - it really doesn't like anything else there
374+ # this must have .asc and .sha1 - it really doesn't like anything else there
386375 for file in $( find . -type f)
387376 do
388377 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --output $file .asc \
389378 --detach-sig --armour $file ;
390- if [ $( command -v md5) ]; then
391- # Available on OS X; -q to keep only hash
392- md5 -q $file > $file .md5
393- else
394- # Available on Linux; cut to keep only hash
395- md5sum $file | cut -f1 -d' ' > $file .md5
396- fi
397379 sha1sum $file | cut -f1 -d' ' > $file .sha1
398380 done
399381
0 commit comments