gitify - Automatically run GenCode on new installs
authorTim Otten <totten@civicrm.org>
Mon, 11 Mar 2013 02:35:17 +0000 (22:35 -0400)
committerTim Otten <totten@civicrm.org>
Mon, 11 Mar 2013 02:35:17 +0000 (22:35 -0400)
bin/gitify

index 825cc89461e98db4a1c542b96b71be78b02db7ad..f905d00eba32aa37731c41641e4473c18cc86f4b 100755 (executable)
@@ -55,6 +55,9 @@ function check_dep() {
     echo "command not found: git"
     exit
   fi
+  if [ -z `which php` ]; then
+    echo "command not found: php"
+  fi
 }
 
 #### Main ####
@@ -116,3 +119,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