A whole new world!~

Co-authored-by: Alexander Hill <ahill@breadpudding.dev>
Co-authored-by: Nicholas McDaniel <nickmcdaniel00@gmail.com>
This commit is contained in:
Alexander Hill
2025-04-02 19:57:21 -04:00
commit f18cf1e886
8 changed files with 909 additions and 0 deletions

18
sources.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh -e
mkdir -p sources
cd sources
cat ../sources.list | while read line; do
HASH=$(echo $line | cut -d"," -f1)
URL=$(echo $line | cut -d"," -f2)
CANONICAL=$(echo $line | cut -d"," -f3)
if [ -z "$CANONICAL" ]; then
OUTPUT=$(basename $URL)
else
OUTPUT=$CANONICAL
fi
if [ ! -f "$OUTPUT" ]; then
echo $OUTPUT
curl -L $URL -o $OUTPUT
fi
echo "$HASH $OUTPUT" | sha256sum -c -
done