Index: /FCKpackager/trunk/_dev/gensinglefile.bat
===================================================================
--- /FCKpackager/trunk/_dev/gensinglefile.bat	(revision 2202)
+++ /FCKpackager/trunk/_dev/gensinglefile.bat	(revision 2202)
@@ -0,0 +1,24 @@
+@ECHO OFF
+
+::
+:: FCKeditor - The text editor for Internet - http://www.fckeditor.net
+:: Copyright (C) 2003-2008 Frederico Caldeira Knabben
+::
+:: == BEGIN LICENSE ==
+::
+:: Licensed under the terms of any of the following licenses at your
+:: choice:
+::
+::  - GNU General Public License Version 2 or later (the "GPL")
+::    http://www.gnu.org/licenses/gpl.html
+::
+::  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+::    http://www.gnu.org/licenses/lgpl.html
+::
+::  - Mozilla Public License Version 1.1 or later (the "MPL")
+::    http://www.mozilla.org/MPL/MPL-1.1.html
+::
+:: == END LICENSE ==
+::
+
+php gensinglefile.php
Index: /FCKpackager/trunk/_source/includes/fckjavascriptcompressor.inc
===================================================================
--- /FCKpackager/trunk/_source/includes/fckjavascriptcompressor.inc	(revision 2201)
+++ /FCKpackager/trunk/_source/includes/fckjavascriptcompressor.inc	(revision 2202)
@@ -42,9 +42,4 @@
 		$script = $stringsProc->ProtectStrings( $script ) ;
 
-		// Remove "//" comments
-		$script = preg_replace(
-			'/\/\/.*$/m',
-			'', $script ) ;
-
 		// Remove "/* */" comments
 		$script = preg_replace(
@@ -52,4 +47,9 @@
 			'', $script ) ;
 
+		// Remove "//" comments
+		$script = preg_replace(
+				'/\/\/.*$/m',
+				'', $script ) ;
+		
 		// Remove spaces before the ";" at the end of the lines
 		$script = preg_replace(
Index: /FCKpackager/trunk/fckpackager.php
===================================================================
--- /FCKpackager/trunk/fckpackager.php	(revision 2201)
+++ /FCKpackager/trunk/fckpackager.php	(revision 2202)
@@ -1,3 +1,3 @@
-#!/usr/bin/php -q
+﻿#!/usr/bin/php -q
 <?php
 /*
@@ -307,9 +307,4 @@
 		$script = $stringsProc->ProtectStrings( $script ) ;
 
-		// Remove "//" comments
-		$script = preg_replace(
-			'/\/\/.*$/m',
-			'', $script ) ;
-
 		// Remove "/* */" comments
 		$script = preg_replace(
@@ -317,4 +312,9 @@
 			'', $script ) ;
 
+		// Remove "//" comments
+		$script = preg_replace(
+				'/\/\/.*$/m',
+				'', $script ) ;
+		
 		// Remove spaces before the ";" at the end of the lines
 		$script = preg_replace(
