Skip to content

Instantly share code, notes, and snippets.

@alex-vlasov
Created March 4, 2014 12:21
Show Gist options
  • Save alex-vlasov/9345523 to your computer and use it in GitHub Desktop.
Save alex-vlasov/9345523 to your computer and use it in GitHub Desktop.
Sugar build for changed files
#!/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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment