#!/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.addClass("melange.\([^"]*\)",.*function/melange.\1 = function/g' \
    -e 's/^});/};/' \
    -e 's/   Melange.addMethod(this, *"\([^"]*\)", /   this.\1 = /g' \
    -e 's/   });/   };/g' \
    -e 's/this.\([^(]*\)());/this.\1();/g' \
$1
