X-Git-Url: https://git.ao2.it/drupal-init-tools.git/blobdiff_plain/9359efb8c4f5176d4a9f0a91a7461ae208c82efd..9be30aa6b8e418e3687c86e6776caf2e9433e111:/libexec/new.sh?ds=inline 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 <