Skip to content

Commit 52f8c8f

Browse files
committed
add scripts/README.md with the SHA commands
1 parent 658d876 commit 52f8c8f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

scripts/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The original scripts were intended to run independently, but it is preferred
2+
to run the Eclipse launchers.
3+
4+
To compute the SHA sums, go to the archive folder and run:
5+
6+
```bash
7+
do_compute_sha() {
8+
# $1 shasum program
9+
# $2.. options
10+
# ${!#} file
11+
12+
file=${!#}
13+
sha_file="${file}.sha"
14+
"$@" >"${sha_file}"
15+
echo "SHA: $(cat ${sha_file})"
16+
}
17+
18+
for f in *.zip *.gz
19+
do
20+
do_compute_sha shasum -a 256 -p ${f}
21+
done
22+
```

0 commit comments

Comments
 (0)