[Mapbender-commits] r2836 - branches/spsneo_dev/build
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Aug 15 16:58:02 EDT 2008
Author: spsneo
Date: 2008-08-15 16:58:02 -0400 (Fri, 15 Aug 2008)
New Revision: 2836
Added:
branches/spsneo_dev/build/README.txt
Log:
Documentation updated
Added: branches/spsneo_dev/build/README.txt
===================================================================
--- branches/spsneo_dev/build/README.txt (rev 0)
+++ branches/spsneo_dev/build/README.txt 2008-08-15 20:58:02 UTC (rev 2836)
@@ -0,0 +1,26 @@
+ Idea
+
+The update script requires to check whether the Mapbender version installed on the user's machine has been customized. To implement this, checksum of every file is stored in a file checksum.json in its directory. These checksums are later matched against their current counterpart to verify whether the file has been modified.
+
+Hence it is required to distribute a mapbender version with the checksum of each file stored in JSON format. This is automatically handled by this script.
+
+
+[edit]
+Requirements
+
+ * PHP (CLI)
+
+[edit]
+Instructions
+
+ * Open the file build-checksum.php to edit it. Define the constant ROOTDIR as the path to the mapbender directory which is to be built.
+
+ * Edit the contents of the array $dir_not_to_scan. Add those directories in this array whose checksum is not to be verified later. Example: conf, log etc. You need to edit this line in the file build-checksum.php :
+
+array_push($dir_not_to_scan,".", "..", "conf", "license", "log", "resources", "update");
+
+ * Execute the script build-checksum.php from the command line :
+
+$ php build-checksum.php
+
+ * If there is no warning, the build script succesfully created the desired checksum.json files.
More information about the Mapbender_commits
mailing list