aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-05-16 03:32:15 -0400
committerB. Watson <urchlay@slackware.uk>2026-05-16 03:32:15 -0400
commite78ea5d2fdc2263be14bb25f9094b590e0b9dc84 (patch)
tree6ceee4f11c4d9736923c1cccbed509266d00ce61
parent3398c2d7bee55f60b3d6dd94e4847c4bbefb3add (diff)
downloadsbostuff-e78ea5d2fdc2263be14bb25f9094b590e0b9dc84.tar.gz
Moving sbosrcarch stuff to its own git repo.HEADmaster
-rwxr-xr-xsbosrc50
1 files changed, 0 insertions, 50 deletions
diff --git a/sbosrc b/sbosrc
deleted file mode 100755
index 6d45922..0000000
--- a/sbosrc
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-# sbosrcarch client example script. tested with bash, ash, ksh.
-# known not to work with zsh.
-
-# if you want a fancier client, that's smart enough to try several
-# archive sites, plus well-known source archives like gentoo and
-# freebsd, plus archive.org's wayback machine, have a look at:
-
-# https://slackware.uk/~urchlay/repos/sbostuff/plain/sbofindsrc
-
-# path to the root of your archive (contains the by-name and
-# by-md5 directories). no trailing slash here.
-ARCHIVE=https://slackware.uk/sbosrcarch
-
-. $( pwd )/*.info || ( echo "no .info file in current dir" 1>&2 && exit 1 )
-
-if [ "$ARCH" = "x86_64" -a "$MD5SUM_x86_64" != "" ]; then
- MD5SUM="$MD5SUM_x86_64"
- DOWNLOAD="$DOWNLOAD_x86_64"
-fi
-
-set $MD5SUM
-
-for url in $DOWNLOAD; do
- file="$( echo "$url" | sed 's,.*/,,' )"
- md5=$1
- shift
-
- echo "Downloading $file ($md5)"
-
- a=$( echo $md5 | cut -b1 )
- b=$( echo $md5 | cut -b2 )
-
- wget -O "$file" "$ARCHIVE/by-md5/$a/$b/$md5/$file"
-
- if [ -e "$file" -a "$( md5sum "$file" | cut -d' ' -f1 )" = "$md5" ]; then
- echo "downloaded, md5sum matches"
- else
- echo "download failed"
- fail=1
- fi
-done
-
-if [ "$fail" != "1" ]; then
- echo "All files found and downloaded successfully"
- exit 0
-else
- exit 1
-fi