![Marton Kiss](/assets/img/avatar_default.png)
Turn off verbose output in dev-build script to reduce log output of build process. Change-Id: Ib40cdf9e698b5120afb8e8eeea9de0ccbd8c2b4a
33 lines
916 B
Bash
Executable File
33 lines
916 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Build groups distribution from local filesystem instead of fetching
|
|
# directly from git
|
|
#
|
|
|
|
TARGET_DIR=${TARGET_DIR:-publish}
|
|
PROFILE_NAME=${PROFILE_NAME:-groups}
|
|
THEME_NAME=${THEME_NAME:-openstack_bootstrap}
|
|
|
|
if [ ! -z "$1" ]; then
|
|
TARGET_DIR=$1
|
|
fi
|
|
|
|
drush make drupal-org-core.make $TARGET_DIR
|
|
mkdir -p $TARGET_DIR/profiles/$PROFILE_NAME
|
|
rsync -a --exclude=$TARGET_DIR --exclude=drush . $TARGET_DIR/profiles/$PROFILE_NAME/
|
|
drush make --no-core --no-cache --contrib-destination=profiles/$PROFILE_NAME drupal-org.make $TARGET_DIR.contrib
|
|
rsync -a $TARGET_DIR.contrib/* $TARGET_DIR/
|
|
rm -rf $TARGET_DIR.contrib
|
|
|
|
# build theme css from sass files
|
|
cwd=$(pwd)
|
|
cd $TARGET_DIR/profiles/$PROFILE_NAME/themes/$THEME_NAME
|
|
if [ -f Gemfile ]; then
|
|
mkdir .bundled_gems
|
|
export GEM_HOME=`pwd`/.bundled_gems
|
|
bundle install
|
|
bundle exec compass compile
|
|
# cleanup
|
|
rm -rf .bundled_gems .sass-cache
|
|
fi
|
|
cd $cwd |