add cli checks to Php code
[roojs1] / buildSDK / pre-commit
index c983695..abbaa07 100755 (executable)
@@ -1,6 +1,8 @@
 #!/usr/bin/php
 <?php
-
+if (php_sapi_name() != 'cli') {
+    die("CLI ONLY");
+}
 // install : ln -s buildSDK/pre-commit .git/hooks/
 
 // the recomendation is to check if the current commit is same as the one on any of the files/directories that need monitoring.
@@ -102,6 +104,7 @@ function build_docs()
 {
     exec("roojspacker -i buildSDK/dependancy_core.txt  -i buildSDK/dependancy_ui.txt  " . 
     "-i buildSDK/dependancy_bootstrap.txt -i buildSDK/dependancy_calendar.txt " .
+    "-i buildSDK/dependancy_svg.txt  " .
    "--doc-target=docs -D");
 }
 function compile_core()