![Marton Kiss](/assets/img/avatar_default.png)
This patch provide a custom TARGET_DIR feature to dev-build.sh script. When not specified, TARGET_DIR value defaults to publish. With this patch dev-build /your-custom-directory format is supported so distribution build destination directory can be different from publish. Change-Id: Icd561748b7909b8d114be311bee4118e0e582e20
20 lines
581 B
Bash
Executable File
20 lines
581 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}
|
|
|
|
if [ ! -z "$1" ]; then
|
|
TARGET_DIR=$1
|
|
fi
|
|
|
|
drush make drupal-org-core.make $TARGET_DIR
|
|
mkdir -p $TARGET_DIR/profiles/$PROFILE_NAME
|
|
rsync -av --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 -av $TARGET_DIR.contrib/* $TARGET_DIR/
|
|
rm -rf $TARGET_DIR.contrib
|