Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1005 Bytes

README.md

File metadata and controls

40 lines (30 loc) · 1005 Bytes

This project helps building a Drupal project that is based on the NodeStream profile. It will at some future point be replaced with drush and provision.

Install with:

Add to a new repository.

  • git submodule add [email protected]:letharion/Drupal-build-scripts.git build
  • ln -s build/build.sh build.sh
  • ln -s build/install.sh install.sh

Cloning a project that uses this.

  • git submodule init
  • git submodule update
  • ln -s build/build.sh build.sh
  • ln -s build/install.sh install.sh

Configuration

In your root directory, create a build.conf, which MUST have DOMAIN and TOPDOMAIN defined.

Hooks

Each hook supports a pre and a post op.

  • hook_OP_install
  • hook_OP_profile_make
  • hook_OP_nodestream_make

Example build.conf:

DOMAIN=nodeone
TOPDOMAIN=se

nodeone_post_nodestream_make() {
  apply_patch "1463002-1-ctools--avoid_casting_notice_in_pm.patch" "web/profiles/nodestream/modules/ctools"
}

nodeone_post_install() {
  run_cmd "drush cc all" "web/sites/default"
}