Mmuzaf commented on code in PR #32:
URL: https://github.com/apache/cassandra-builds/pull/32#discussion_r1293437707
##########
cassandra-release/cassandra-check-release.sh:
##########
@@ -0,0 +1,276 @@
+#!/bin/bash
+
+# Parameters
+# $1 release
+# $2 maven artefacts url number (as specified in the vote email)
+#
+# Example use: `./cassandra-check-release.sh 4.0-beta3 1224
+#
+# This script is very basic and experimental. I beg of you to help improve it.
+#
+
+###################
+# prerequisites
+
+command -v wget >/dev/null 2>&1 || { echo >&2 "wget needs to be installed";
exit 1; }
+command -v gpg >/dev/null 2>&1 || { echo >&2 "gpg needs to be installed"; exit
1; }
+command -v sha1sum >/dev/null 2>&1 || { echo >&2 "sha1sum needs to be
installed"; exit 1; }
+command -v md5sum >/dev/null 2>&1 || { echo >&2 "md5sum needs to be
installed"; exit 1; }
+command -v sha256sum >/dev/null 2>&1 || { echo >&2 "sha256sum needs to be
installed"; exit 1; }
+command -v sha512sum >/dev/null 2>&1 || { echo >&2 "sha512sum needs to be
installed"; exit 1; }
+command -v tar >/dev/null 2>&1 || { echo >&2 "tar needs to be installed"; exit
1; }
+command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit
1; }
+command -v timeout >/dev/null 2>&1 || { echo >&2 "timeout needs to be
installed"; exit 1; }
+command -v docker >/dev/null 2>&1 || { echo >&2 "docker needs to be
installed"; exit 1; }
+(docker info >/dev/null 2>&1) || { echo >&2 "docker needs to running"; exit 1;
}
+(java -version 2>&1 | grep -q "1.8") || { echo >&2 "Java 8 must be used"; exit
1; }
Review Comment:
I think we can remove this requirement as it will not work for 5.x releases,
right? :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]