summaryrefslogtreecommitdiff
path: root/fetch-sources.sh
diff options
context:
space:
mode:
authorAlexander Hill <ahill@breadpudding.dev>2025-11-11 10:06:56 -0500
committerAlexander Hill <ahill@breadpudding.dev>2025-11-11 10:06:56 -0500
commit8bd73c53fceec182c8e9908ac64cf25a05ddf45d (patch)
tree2dc706a9304db716d4843783335679a1235cd75b /fetch-sources.sh
parent5484dbc5de255c56766f66d0c1d7afdcf988ee99 (diff)
Started bootstrapping with treetap
Diffstat (limited to 'fetch-sources.sh')
-rwxr-xr-xfetch-sources.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/fetch-sources.sh b/fetch-sources.sh
deleted file mode 100755
index 8d7e409..0000000
--- a/fetch-sources.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh -e
-mkdir -p sources
-cd sources
-cat ../sources.list | while read line; do
- # This ignores lines starting with # so comments can be added. ~ahill
- if case $line in \#*) false;; *) true;; esac; then
- HASH=$(echo $line | cut -d"," -f1)
- # Comments (-f2) are ignored by the script ~ahill
- URL=$(echo $line | cut -d"," -f3)
- CANONICAL=$(echo $line | cut -d"," -f4)
- 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 -
- fi
-done