[Mapbender-commits] r2756 - branches/spsneo_dev/build
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Aug 8 16:03:27 EDT 2008
Author: spsneo
Date: 2008-08-08 16:03:27 -0400 (Fri, 08 Aug 2008)
New Revision: 2756
Modified:
branches/spsneo_dev/build/checksum-utils.inc
Log:
minor refactoring
Modified: branches/spsneo_dev/build/checksum-utils.inc
===================================================================
--- branches/spsneo_dev/build/checksum-utils.inc 2008-08-08 12:34:37 UTC (rev 2755)
+++ branches/spsneo_dev/build/checksum-utils.inc 2008-08-08 20:03:27 UTC (rev 2756)
@@ -17,7 +17,7 @@
}
if(!is_readable($dir_path)) {
- echo $dir_path." is not readable.\nPlease make sure you have privilege to build.\nAborting...";
+ echo $dir_path." is not readable.\nPlease make sure you have privilege to build.\nAborting...\n";
exit();
}
@@ -28,7 +28,7 @@
if(is_readable($file_path)) {
$file_arr[$file] = sha1_file($file_path);
} else {
- echo $file_path." is not readable.\nPlease make sure you have privelege to build.\nAborting...";
+ echo $file_path." is not readable.\nPlease make sure you have privelege to build.\nAborting...\n";
exit();
}
} else if (is_dir($file_path) && !preg_match("/^\./", $file)) {
@@ -40,7 +40,6 @@
}
}
-
$file_json_string = json_encode($file_arr);
$file_json_name = $dir_path."/checksum.json";
$file_json_handle = fopen($file_json_name, "w");
@@ -49,6 +48,7 @@
exit();
}
fwrite($file_json_handle, $file_json_string);
+ fclose($file_json_handle);
//echo "Succesfully created checksums of files in directory: ".$dir_path."\n";
return TRUE;
}
More information about the Mapbender_commits
mailing list