/**
 * MVEL 2.0
 * Copyright (C) 2007 The Codehaus
 * Mike Brock, Dhanji Prasanna, John Graham, Mark Proctor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.mvel2.sh;

import org.mvel2.MVEL;

import java.io.File;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        if (args.length != 0) {
            MVEL.evalFile(new File(args[0]));
        }
        else {
            showSplash();
            new ShellSession().run();
        }
    }

    private static void showSplash() {
        System.out.println("\nMVEL-Shell (MVELSH)");
        System.out.println("Copyright (C) 2008, Christopher Brock, The Codehaus");
        System.out.println("Version " + MVEL.VERSION + "." + MVEL.VERSION_SUB + "\n");
    }
}

@@ -1,12 +1,11 @@
 /**
-%0D
 %0A * MVEL
@@ -8,17 +8,16 @@
 MVEL 2.0
-%0D
 %0A * Copy
@@ -43,17 +43,16 @@
 Codehaus
-%0D
 %0A * Mike
@@ -101,21 +101,19 @@
  Proctor
-%0D
 %0A *
-%0D
 %0A * Lice
@@ -171,17 +171,16 @@
 cense%22);
-%0D
 %0A * you 
@@ -239,17 +239,16 @@
 License.
-%0D
 %0A * You 
@@ -282,21 +282,19 @@
 cense at
-%0D
 %0A *
-%0D
 %0A *     
@@ -339,13 +339,11 @@
 -2.0
-%0D
 %0A *
-%0D
 %0A * 
@@ -409,17 +409,16 @@
 software
-%0D
 %0A * dist
@@ -478,17 +478,16 @@
 %22 BASIS,
-%0D
 %0A *  WIT
@@ -555,17 +555,16 @@
 implied.
-%0D
 %0A * See 
@@ -626,17 +626,16 @@
 ions and
-%0D
 %0A * limi
@@ -664,16 +664,13 @@
 nse.
-%0D
 %0A */
-%0D%0A%0D
+%0A
 %0Apac
@@ -687,19 +687,17 @@
 vel2.sh;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -711,19 +711,17 @@
 l2.MVEL;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -733,17 +733,16 @@
 io.File;
-%0D
 %0Aimport 
@@ -761,19 +761,17 @@
 ception;
-%0D%0A%0D
+%0A
 %0Apublic 
@@ -782,17 +782,16 @@
 s Main %7B
-%0D
 %0A    pub
@@ -846,17 +846,16 @@
 eption %7B
-%0D
 %0A       
@@ -878,17 +878,16 @@
  != 0) %7B
-%0D
 %0A       
@@ -924,17 +924,16 @@
 gs%5B0%5D));
-%0D
 %0A       
@@ -930,25 +930,24 @@
 );%0A        %7D
-%0D
 %0A        els
@@ -949,17 +949,16 @@
   else %7B
-%0D
 %0A       
@@ -975,17 +975,16 @@
 plash();
-%0D
 %0A       
@@ -1013,17 +1013,16 @@
 ).run();
-%0D
 %0A       
@@ -1027,18 +1027,15 @@
    %7D
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A   
@@ -1069,17 +1069,16 @@
 lash() %7B
-%0D
 %0A       
@@ -1122,17 +1122,16 @@
 ELSH)%22);
-%0D
 %0A       
@@ -1171,10 +1171,10 @@
 ) 20
+1
 0
-8
 , Ch
@@ -1205,17 +1205,16 @@
 ehaus%22);
-%0D
 %0A       
@@ -1296,16 +1296,13 @@
 n%22);
-%0D
 %0A    %7D
-%0D
 %0A%7D
-%0D
 %0A

update copyright.