Skip to content
Snippets Groups Projects
Commit 8f375c24 authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3476583 by phenaproxima: The downloadable zip file for starting new...

Issue #3476583 by phenaproxima: The downloadable zip file for starting new projects does not maintain patch definitions
parent 84e7d6d5
Branches
Tags
1 merge request!103Ensure the unpack command also copies patch definitions into a file
Pipeline #292013 passed with warnings
......@@ -8,12 +8,21 @@
# Stop this entire script if any one command fails.
set -e
# The path to the built code base may have been passed in; this is
# currently used by our CI process.
BUILD_DIR=${1:-$PWD}
# Copy all patch definitions into a dedicated file.
PATCHES=$BUILD_DIR/patches.json
echo -n '{"patches":' > $PATCHES
composer config extra.patches --working-dir=drupal_cms_patches >> $PATCHES
echo -n '}' >> $PATCHES
# Assume all recipes are located in the current directory.
recipes=$(find . -maxdepth 1 -type d -name 'drupal_cms*' -printf "drupal/%P\n")
# If a path to the built code base was passed (currently used by our CI process),
# switch to it.
test -z "$1" || cd $1
# Switch into the project directory to start modifying it.
cd $BUILD_DIR
# Configure and install the unpack plugin.
composer config allow-plugins.ewcomposer/unpack true
......
/.phpunit.result.cache
/composer.json
/composer.lock
patches.json
patches.lock.json
/vendor
/web
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment