diff options
author | Javier <dev.git@javispedro.com> | 2024-10-05 00:32:17 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2024-10-05 00:59:23 +0200 |
commit | 02e7400c2407fed1ee7b7189c60a71aed9aa9725 (patch) | |
tree | 9623fab8d1e7cc13d544aa9f24ee1f25ccea528a /scripts/build_manifest.sh | |
parent | 969531b92ac5d67e26880cff986f53da98b29ce3 (diff) | |
download | vmusic-02e7400c2407fed1ee7b7189c60a71aed9aa9725.tar.gz vmusic-02e7400c2407fed1ee7b7189c60a71aed9aa9725.zip |
move scripts around
Diffstat (limited to 'scripts/build_manifest.sh')
-rwxr-xr-x | scripts/build_manifest.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/build_manifest.sh b/scripts/build_manifest.sh new file mode 100755 index 0000000..796bf71 --- /dev/null +++ b/scripts/build_manifest.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Creates a ExtPack.manifest-style file, which contains one entry for each file in the extpack like the following: + +# MD5 (darwin.amd64/VBoxUsbWebcamR3.dylib) = 54e84211cad1630b278d25c99ab13a41 +# SHA256 (darwin.amd64/VBoxUsbWebcamR3.dylib) = cfde0b80981f70893dade0a06b448fcde47f31fbaf63041554d6852a8402452c +# SHA512 (darwin.amd64/VBoxUsbWebcamR3.dylib) = 9ddfb08dacd4c03756681bdab1b95be8b1b1ebb06e3e9c7656314d5a2392aef30eee91c52ca9071f8fa4571da9d515ab57f5cb5b7edeae4303e07432e8ef3d7f +# SHA1 (darwin.amd64/VBoxUsbWebcamR3.dylib) = bec791d4298971c8dc9e3a5ed361e5bcc51fa479 +# SIZE (darwin.amd64/VBoxUsbWebcamR3.dylib) = 70800 + +for file in "$@" +do + if [[ "$file" == "ExtPack.manifest" ]]; then + continue + fi + + for alg in md5 sha256 sha512 sha1 + do + ${alg}sum --tag "$file" + done + stat --printf="SIZE ($file) = %s\n" "$file" +done |