Skip to content

Commit

Permalink
add scripts/README.md with the SHA commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Sep 23, 2019
1 parent 658d876 commit 52f8c8f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The original scripts were intended to run independently, but it is preferred
to run the Eclipse launchers.

To compute the SHA sums, go to the archive folder and run:

```bash
do_compute_sha() {
# $1 shasum program
# $2.. options
# ${!#} file

file=${!#}
sha_file="${file}.sha"
"$@" >"${sha_file}"
echo "SHA: $(cat ${sha_file})"
}

for f in *.zip *.gz
do
do_compute_sha shasum -a 256 -p ${f}
done
```

0 comments on commit 52f8c8f

Please sign in to comment.