#!/bin/sh # \ exec /usr/local/bin/tclsh "$0" ${1+"$@"} # Change the following paths to reflect the installation path set startDirectory /usr/class/sce/rcpp set toolDirectory /usr/class/sce/rcpp/tools cd ${startDirectory}/tmp if [catch {exec ${toolDirectory}/generate-catalog ${startDirectory}/RESOLVE_Catalog . "RESOLVE Catalog"} result] { puts "$result" } puts "Installing RESOLVE-HTML catalog..." puts "deleting old backup" file delete -force RESOLVE_Catalog-BACKUP if {[file exists ${startDirectory}/RESOLVE_Catalog-HTML]} { puts "saving backup of RESOLVE-HTML catalog" file rename -force ${startDirectory}/RESOLVE_Catalog-HTML RESOLVE_Catalog-BACKUP } puts "installing new catalog" file rename -force RESOLVE_Catalog-HTML ${startDirectory}/RESOLVE_Catalog-HTML puts "...all done installing RESOLVE-HTML catalog!" if [catch {exec ${toolDirectory}/generate-catalog ${startDirectory}/Bugs_Catalog . "Bugs Catalog"} result] { puts "$result" } puts "Installing Bugs-HTML catalog..." puts "deleting old backup" file delete -force Bugs_Catalog-BACKUP if {[file exists ${startDirectory}/Bugs_Catalog-HTML]} { puts "saving backup of Bugs-HTML catalog" file rename -force ${startDirectory}/Bugs_Catalog-HTML Bugs_Catalog-BACKUP } puts "installing new catalog" file rename -force Bugs_Catalog-HTML ${startDirectory}/Bugs_Catalog-HTML puts "...all done installing Bugs-HTML catalog!"