From c83ea1ce89f75329ffaed920ebd20028e778a074 Mon Sep 17 00:00:00 2001 From: Na7coldwater <0nathan0nathan0nathan0+github@gmail.com> Date: Sat, 19 Nov 2011 17:18:57 -0700 Subject: [PATCH] Added divider variable --- combine.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/combine.php b/combine.php index f77589b..4f0ba4c 100755 --- a/combine.php +++ b/combine.php @@ -10,6 +10,9 @@ $folder = "src"; $src_folder = "{$folder}/modules"; +//The divider added between the contents of merged files +$divider = "\n// --------------------------------------------------------------------------\n\n"; + $files = array(); //Get all the source files @@ -31,7 +34,7 @@ if($dir = opendir($src_folder)) $new_file = file_get_contents("{$folder}/core.js") . "\n"; //Add polyfills -$new_file .= "\n// --------------------------------------------------------------------------\n\n"; +$new_file .= $divider; $new_file .= file_get_contents("{$folder}/polyfill.js") . "\n"; @@ -44,7 +47,7 @@ foreach($files as $f) $module = implode("\n", $farray); - $new_file .= "\n// --------------------------------------------------------------------------\n\n".$module."\n"; + $new_file .= $divider.$module."\n"; }