-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add scripts/README.md with the SHA commands
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |