Renamed stanzas to reflect FreeBSD specific stuff.
Minor cosmetic cleanup.
1 parent 184bdf0 commit 20e6bcc51926760303ecc824c8dcbd239e31fbfc
@tundra tundra authored on 26 Mar 2013
Showing 1 changed file
View
42
sysupd
#!/bin/sh
# Update Various System Files, Ports, etc.
# Copyright (c) 2006-2013, TundraWare Inc, Des Plaines, IL USA
# All Rights Reserved
# $Id: sysupd,v 1.136 2013/03/26 17:09:13 tundra Exp $
# $Id: sysupd,v 1.137 2013/03/26 17:20:26 tundra Exp $
 
 
#####
# Where To Put The Various Log Files Generated Here
#####
# List Of Sets To Process By Default
#####
 
DEFAULTSETS='doc ports src texlive'
#ALL='debian freebsd_doc freebsd_ports freebsd_src texlive'
 
 
DEFAULTSETS='freebsd_doc freebsd_ports freebsd_src texlive'
 
 
# ---------------- Support Functions ---------------- #
 
case $SET
in
 
###
# Debian Linux Updates
# Debian Linux Updates
###
 
debian)
runupd $SET $LOGDIR "/usr/bin/apt-get -y update && /usr/bin/apt-get -y dist-upgrade && /usr/bin/apt-get -y upgrade"
;;
 
###
# SVN Updates
# FreeBSD Documentation Updates
###
 
doc | src)
runupd $SET $LOGDIR "/usr/local/bin/svn update /usr/${SET}"
freebsd_doc)
runupd $SET $LOGDIR "/usr/local/bin/svn update /usr/doc"
;;
 
 
###
# Ports Updates
# Freebsd Ports Updates
###
 
ports)
freebsd_ports)
runupd $SET $LOGDIR "/usr/sbin/portsnap cron update"
;;
 
 
###
# Update TeX Live
# FreeBSD Source Code Updates
###
 
freebsd_src)
runupd $SET $LOGDIR "/usr/local/bin/svn update /usr/src"
;;
 
 
###
# TeX Live Updates
###
 
texlive)
runupd $SET $LOGDIR "/usr/local/bin/tlmgr update --self && /usr/local/bin/tlmgr update --all"