X-Git-Url: https://git.ao2.it/drupal-init-tools.git/blobdiff_plain/9359efb8c4f5176d4a9f0a91a7461ae208c82efd..753d330f19438d3d675421e1ffb292cfbaa5dc52:/libexec/new.sh diff --git a/libexec/new.sh b/libexec/new.sh index 385c141..890b1d0 100755 --- a/libexec/new.sh +++ b/libexec/new.sh @@ -20,7 +20,7 @@ set -e usage() { cat < +usage: drin $(basename "$0" .sh) [-h|--help] Create a new Drupal project in the 'destdir' directory. @@ -64,14 +64,9 @@ pushd "$DESTDIR" git remote rename origin upstream git checkout -b master -echo >> .gitignore -echo "# Ignore the configuration for the bootstrap script" >> .gitignore -echo "bootstrap.conf" >> .gitignore -# Add some patches, use sed until composer can do that from the command line -# (e.g. composer config ...) -sed -i -e 's@"extra": {@"extra": {\ - "patches-file": "composer.patches.json",@' composer.json +# Add some patches +composer config extra.patches-file "composer.patches.json" cat > composer.patches.json < bootstrap.conf <> .gitignore < .htaccess <