[PATCH] D83411: Use md5 -q for HashProgramOutput.sh, to show only the checksum.

Dimitry Andric via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 10:25:59 PDT 2020


dim created this revision.
dim added reviewers: ddunbar, jdoerfert, serge-sans-paille, tra.

This option is supported on both BSDs and macOS, and ensures the command
also works if GNU coreutils are not installed.


Repository:
  rT test-suite

https://reviews.llvm.org/D83411

Files:
  HashProgramOutput.sh


Index: HashProgramOutput.sh
===================================================================
--- HashProgramOutput.sh
+++ HashProgramOutput.sh
@@ -18,7 +18,7 @@
 
 mv $1 $1.bak
 if [ $is_md5sum = "0" ]; then
-    $md5cmd < $1.bak > $1
+    $md5cmd -q < $1.bak > $1
 else
     $md5cmd < $1.bak | cut -d' ' -f 1 > $1
 fi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83411.276482.patch
Type: text/x-patch
Size: 322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200708/0e45de66/attachment.bin>


More information about the llvm-commits mailing list