2023-09-10 21:35:34 -05:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
do_hash() {
|
|
|
|
HASH_NAME=$1
|
|
|
|
HASH_CMD=$2
|
|
|
|
echo "${HASH_NAME}:"
|
|
|
|
for f in $(find -type f); do
|
|
|
|
f=$(echo $f | cut -c3-) # remove ./ prefix
|
|
|
|
if [ "$f" = "Release" ]; then
|
|
|
|
continue
|
|
|
|
fi
|
2024-10-18 18:00:54 -05:00
|
|
|
echo " $(${HASH_CMD} ${f} | cut -d" " -f1) $(wc -c $f)"
|
2023-09-10 21:35:34 -05:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2024-10-18 18:00:54 -05:00
|
|
|
cat <<EOF
|
2023-09-10 21:35:34 -05:00
|
|
|
Origin: askiiart.net
|
|
|
|
Label: askiiiart's repo
|
|
|
|
Suite: stable
|
|
|
|
Codename: bookworm
|
|
|
|
Version: 1.0
|
|
|
|
Architectures: amd64 arm64 arm7
|
|
|
|
Components: main
|
|
|
|
Description: An example software repository
|
|
|
|
Date: $(date -Ru)
|
|
|
|
EOF
|
|
|
|
do_hash "MD5Sum" "md5sum"
|
|
|
|
do_hash "SHA1" "sha1sum"
|
2024-10-18 18:00:54 -05:00
|
|
|
do_hash "SHA256" "sha256sum"
|