#!/bin/sh # ------------------------------------------------------------------- # update_news # # Simple script updates newstext for cvs, updates the date # in connect.txt, updates connect.txt for cvs and then mkindx # news. # (commit newstext, mkindx news, update connect.txt, sed blah, # commit connect.txt) # # Written By Ender Date: 04/13/92 # ------------------------------------------------------------------- # Set paths to cvs and mkindx programs cvs='/usr/local/bin/cvs' mkindx='./mkindx' # Commit newstext for cvs system and mkindx news eval $cvs commit newstext eval $mkindx news # Update connect.txt ~ eval $cvs update connect.txt # Initialize update date for inclusion in connect.txt update=`date` echo "Update date: $update" # If connect.tmp exists, remove it. if [ -f connect.tmp ] then rm connect.tmp fi # Update connect.txt cat connect.txt | sed -e "s/Last online news update: * MUSE/Last online news update: $update MUSE/" > connect.tmp mv -f connect.tmp connect.txt # Commit connect.txt eval $cvs commit connect.txt