#!/bin/csh -f
# script to mung all BackSpace .o files in a directory into .BackO files
# usage: convertToBackOs <directoryName>
# This script is useful to convert those old 1.0 BackSpace modules into
# ones that 3.0 BackSpace will find.

if ($#argv == 0) then
	echo "usage: convertToBackOs <directoryName>"
	echo ""
	echo "    This shell script renames BackSpace v1.0's .o files so that"
	echo "    they can be found and loaded by BackSpace v3.0"
	echo ""
	exit (1)
endif

cd $1

foreach file (*View.o)
	echo Converting ${file}
	mv ${file} `echo ${file} | sed "s/View.o/View.BackO/"`
end
