#!/bin/sh # stable.sh # Local version: 1.0 # Copyright (c) 2008 Peter Kuyarov, All rights reserved # Mon Mar 3 09:41:06 MST 2008 # script to update src and keep log of updates # # scripts@pknet.net # http://peterk.org/scripts/ # PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin export PATH csup='/usr/bin/csup -g -L2' supfile='/usr/local/etc/stable-supfile' logfile='/var/log/supfile' $csup $supfile && \ echo STABLE --- `date` >> $logfile || \ echo STABLE failed `date` >> $logfile