#!/bin/sh

##
## Melange License Notice
##
## The contents of this file are subject to the Lesser Gnu Public License
## (the "License"). You may not use this file except in compliance with 
## the License. A copy of the License is available at
## http://opensource.org/licenses/lgpl-license.php
##
## Copyright 2004 Tobi Schaefer. All Rights Reserved.
##
## $RCSfile$
## $Author$
## $Revision$
## $Date$
##

sed -e 's/melange.\([^ ]*\) *= *function(\([^\)]*\)) *{ *\(\/\* *PROTO *\([^ ]*\) *\*\/\( *\)\)*/Melange.addClass("melange.\1", \4, function(\2) {/g' \
    -e 's/^};/});/' \
    -e 's/   this.\([^ ]*\) *= *\(function\)*/   Melange.addMethod(this, "\1", /g' \
    -e 's/   };/   });/g' \
    -e 's/Melange.addMethod(\([^)]*\));/Melange.addMethod(\1));/g' \
$1
