I had a little script file called mkoctfile, originally enough, to do just
that. I don't seem able to lay hands on it now. It had all of four lines
to rename the old .oct file, to prevent accidental reloading, clearing the
old version from octave and an invocation of mkoctfile. The fourth line was
a comment. Doubtless something more sophisticated could be done.