Created
May 19, 2016 16:10
-
-
Save mglaman/cd237ed01274962d8abef09cebad2575 to your computer and use it in GitHub Desktop.
Script to package a Pantheon upstream once packaged on Drupal.org.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| DISTRO='commerce_kickstart' | |
| NAME='Commerce Kickstart' | |
| # @todo use REST API to get https://www.drupal.org/api-d7/node/2729399.json but by checking type and field_release_vcs_label | |
| # this lets us know when it has been packaged. | |
| git fetch upstream && git merge upstream/master | |
| rm -rf profiles/$DISTRO | |
| curl -L -o distro-no-core.tar.gz https://ftp.drupal.org/files/projects/$DISTRO-$1-no-core.tar.gz | |
| tar -zxvf distro-no-core.tar.gz | |
| mv $DISTRO profiles/ | |
| rm ck2-no-core.tar.gz | |
| git add profiles/$DISTRO | |
| git commit -m "Update $NAME to $1" | |
| git show @ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment