Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release script: update list of files that ship with each release #12832

Merged
merged 4 commits into from
Jun 24, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .svnignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ renovate.json
bin/phpcs-whitelist.js
bin/pre-commit-hook.js
bin/release-package.php
css/*.css.map
docs
tests
scss
tools
vendor/bin
vendor/dealerdirect
Expand All @@ -29,6 +31,9 @@ vendor/sirbrillig
vendor/squizlabs
vendor/wp-coding-standards
vendor/automattic/jetpack-autoloader
vendor/automattic/**/tests/
vendor/automattic/**/README.md
vendor/automattic/**/phpunit.xml.dist
jeherve marked this conversation as resolved.
Show resolved Hide resolved
composer.lock
package.json
gulpfile.js
Expand Down
15 changes: 14 additions & 1 deletion tools/deploy-to-svn.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
#!/bin/bash
#!/usr/bin/env bash

# This script requires Bash 4+, since we want a version of Bash that supports globstar.
if [ -z "${BASH_VERSINFO}" ] || [ -z "${BASH_VERSINFO[0]}" ] || [ ${BASH_VERSINFO[0]} -lt 4 ]; then
echo "This script requires Bash version >= 4."
read -p "Do you want to install it on your system with Homebrew? [y/N]" -n 1 -r
if [[ $REPLY != "y" && $REPLY != "Y" ]]; then
exit 1;
else
brew install bash 2>/dev/null
echo "Done!"
fi
fi

if [ $# -eq 0 ]; then
echo 'Usage: `./deploy-to-svn.sh <tag | HEAD>`'
Expand Down Expand Up @@ -69,6 +81,7 @@ echo "Done!"

echo "Purging paths included in .svnignore"
# check .svnignore
shopt -s globstar # Support globs.
for file in $( cat "$JETPACK_GIT_DIR/.svnignore" 2>/dev/null ); do
rm -rf $JETPACK_SVN_DIR/trunk/$file
done
Expand Down