#!/bin/sh
# ' Change absolute paths of this CAML version directory '
# ''

VERSION=V3.1

case $1 in
  /?*/?*)
  CAMLDIR="$1";;
  *)
  echo "Usage: $0 [complete path of CAML directory]" ; exit 1;;
esac

########################
# revision Makefile
chmod +w ./Makefile
ed ./Makefile <<!
/CAMLDIR =/s|=.*\$|=$CAMLDIR|p
w
!
chmod -w ./Makefile

########################
# revision camlman
chmod +w ./camlman
ed ./camlman <<!
/MANDIR =/s|=.*\$|=$CAMLDIR/$VERSION/man|p
w
!
chmod -w ./camlman
