#!/bin/sh
# Correct URLS for files in tcl html archive for installation in 
# new position
# 
# If this doesn't work 100% for you at least its a starting point (:-)...

if [ $# -eq 0 ] ; then
    echo "fixURL: correct URLS refs from current value to new site"
    echo "Usage : fixURL newsite"
    echo "  Any remaining args are passed onto internal sed command"
    echo "     e.g. fixURL 'mysite.x.co.uk/home/mine' "
    exit 1
fi

newsite=$1
shift
# mods for hardwired site - unneeded since changed refs to be relative ...
#echo sed -e "'s^//wexford.x.co.uk/users/hops/tcl^//$newsite/tcl^g'" "$@"

# localhost files....
echo sed -e "'s^/s/usr/hops/doc/xmosaic/tcl^//$newsite/tcl^g'" "$@"

