mirror of https://github.com/i2p-zero/i2p-zero
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
671 B
17 lines
671 B
#!/bin/bash
|
|
|
|
# get the SHA-256 hash of the specified file
|
|
getHash () {
|
|
if [ $(uname -s) = Darwin ]; then
|
|
h=`shasum -a 256 $1 | awk '{print $1}'`
|
|
else
|
|
h=`sha256sum $1 | awk '{print $1}'`
|
|
fi
|
|
echo $h
|
|
}
|
|
|
|
# normalizes the specified jar or zip for reproducible build. Enforces consistent zip file order and sets all timestamps to the last modified date of the VERSION file
|
|
normalizeZip () {
|
|
$JAVA_HOME/bin/java --module-path "$basedir/import/commons-compress-1.18/commons-compress-1.18.jar":"$basedir/target/org.getmonero.util.normalizeZip.jar" \
|
|
-m org.getmonero.util.normalizeZip "$basedir/org.getmonero.i2p.zero/src/org/getmonero/i2p/zero/VERSION" "$1"
|
|
} |