Merge pull request #115 from dlobo/CRM-12088
[civicrm-core.git] / bin / gitify
index 5e8478aa5c35174ea8628b4d8a46b2327bf6ad34..c17d8eeb626990763423d9a6e59975454d8c0327 100755 (executable)
@@ -76,6 +76,9 @@ function check_dep() {
     echo "command not found: git"
     exit 3
   fi
+  if [ -z `which php` ]; then
+    echo "command not found: php"
+  fi
 }
 
 #### Main ####
@@ -172,3 +175,12 @@ esac
 if [ "$CIVICRM_L10N" == "--l10n" ]; then
   do_svnify "http://svn.civicrm.org/l10n/trunk" "$CIVICRM_ROOT/l10n"
 fi
+
+pushd "$CIVICRM_ROOT/xml" > /dev/null
+if [ -f "GenCode.php" ]; then
+  echo "[[Generate files]]"
+  php GenCode.php
+else
+  echo "[[Skip \"Generate files\"]]"
+fi
+popd > /dev/null