drawkcaB | Backward Compatible logo

rants and tips about software

Staying up to date with slackware-current

Here’s a nice script I use (I did not write it myself):

#!/bin/bash
#
# Check slackware-current
#
# Where to download from
# should script it so that the different sources can be listed and
# selected from the command line
SOURCE=”rsync://slackware.mirrors.tds.net/slackware/slackware64-current”
# Change as necessary
OPTIONS=”-avzP —delete —delete-after”

EXCLUDE=”—exclude=pasture —exclude=kdei \
—exclude=zipslack”

DEST=”/home/milanb/arhiva/install/distre/slackware/current64/download/”

case “$1” in

“-c” )
echo “Checking…”
/usr/bin/rsync $OPTIONS $EXCLUDE —dry-run $SOURCE $DEST
;;

“-d” )
echo “Downloading…”
/usr/bin/rsync $OPTIONS $EXCLUDE $SOURCE $DEST
;;

* )
echo “Usage: `basename $0` {-c|-d}”
echo -e “	-c : Check for updates”
echo -e “	-d : Download updates”
exit
;;

esac

######################################################
Milan Babuškov, 2009-07-03
Copyright © Milan Babuškov 2006-2024