This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('sugarEntry'))define('sugarEntry', true); | |
require_once('include/entryPoint.php'); | |
$logger = new Sugarcrm\Sugarcrm\Dbal\Logging\SugarLogger($GLOBALS['log']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep 'file=' phpunit-junit.log | sed 's/.*file="//' - | sed 's/" .*//' - | uniq | sed 's/^/<file>/' - | sed 's/$/<\/file>/' - > /var/www/sugar/Mango/tests.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name '*.php' | xargs perl -0777 -i -pe 's#([;{}]\s*)([ \t]+(?:static )?(?:public|protected) (?:static )?function (?:setUp(?:BeforeClass)?|tearDown(?:AfterClass)?)\(\))#$1 /**\n * \@codeCoverageIgnore\n */\n $2#gis' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name '*.php' | xargs perl -0777 -i -pe 's#([ \t]+\/\*\*\s*?\n)(([ \t]+\*[ \t]+(?!@codeCoverageIgnore)[^\n]*?\n)*)\s+\*\/\s*([ \t]+(?:public|protected) function (?:setUp(?:BeforeClass)?|tearDown(?:AfterClass)?)\(\))# /**\n * \@codeCoverageIgnore\n$2 */\n $4#gis' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SOURCE_DIR="/var/www/sugar/Mango" ; | |
BUILD_DIR="/var/www/sugar/Mango/build/rome" ; | |
VERSION="6.7.0" ; | |
git status --porcelain | grep -v '^?' | cut -c 4- | xargs -I{} -n1 sh -c "cd $BUILD_DIR && sudo php -n build.php --dir={} --file={} --flav=ult --cleanCache=1 --base_dir=$SOURCE_DIR --ver=$VERSION" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -n "`mount | grep box.net`" ] | |
then | |
echo "box.net mounted, continue" ; | |
else | |
echo "box.net not mounted, trying to mount" ; | |
modprobe fuse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Original for 5.3 by Ruben Barkow (rubo77) http://www.entikey.z11.de/ | |
# release 1 PHP5.4 to 5.3 by Emil Terziev ( foxy ) Bulgaria | |
# Originally Posted by Bachstelze http://ubuntuforums.org/showthread.php?p=9080474#post9080474 | |
# OK, here's how to do the Apt magic to get PHP packages from the precise repositories: | |
echo "Am I root? " | |
if [ "$(whoami &2>/dev/null)" != "root" ] && [ "$(id -un &2>/dev/null)" != "root" ] ; then |