From e29a638a8a28423cd3e893bfd92d2adb8f64c03c Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 10 Mar 2013 22:35:17 -0400 Subject: [PATCH] gitify - Automatically run GenCode on new installs --- bin/gitify | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/gitify b/bin/gitify index 825cc89461..f905d00eba 100755 --- a/bin/gitify +++ b/bin/gitify @@ -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 -- 2.25.1