2023-04-22 14:06:00 +02:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
. ../../config # this file is in /apt-repo/config
|
2023-04-22 14:06:00 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
echo " $(${HASH_CMD} ${f} | cut -d" " -f1) $(wc -c $f)"
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
pwd
|
2023-04-22 14:06:00 +02:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
if [ ! -f "../../config" ]; then
|
|
|
|
echo "error - config file does not exists"
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2023-04-22 14:06:00 +02:00
|
|
|
cat << EOF
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
Origin: $ORIGIN
|
|
|
|
Label: $LABEL
|
|
|
|
Suite: $SUITE
|
|
|
|
Codename: $CODENAME
|
|
|
|
Version: $VERSION
|
|
|
|
Architectures: $ARCHITECTURES
|
|
|
|
Components: $COMPONENTS
|
|
|
|
Description: $DESCRIPTION
|
2023-04-22 14:06:00 +02:00
|
|
|
Date: $(date -Ru)
|
|
|
|
EOF
|
big feat & update commit, read description...
feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
2023-05-03 17:07:33 +02:00
|
|
|
|
2023-04-22 14:06:00 +02:00
|
|
|
do_hash "MD5Sum" "md5sum"
|
|
|
|
do_hash "SHA1" "sha1sum"
|
|
|
|
do_hash "SHA256" "sha256sum"
|
|
|
|
|