wp2static/provisioning/publish_release.sh
Leon Stafford 3d9a7c7a08 filepath rel to proj root
Former-commit-id: 3afa1bcb92
2017-04-02 22:29:45 +12:00

39 lines
840 B
Bash
Executable file

#!/bin/bash
PROJECT_ROOT=$(pwd)
SVN_ROOT=/home/leon/svnplugindir
NEW_TAG=1.9
# run from project root
# copy all files to svn trunk
cp -r $PROJECT_ROOT/* $SVN_ROOT/trunk/
# remove files only used in development
rm $SVN_ROOT/trunk/*.sh
rm $SVN_ROOT/trunk/*.rb
rm $SVN_ROOT/trunk/*.ini
rm $SVN_ROOT/trunk/Dockerfile
rm $SVN_ROOT/trunk/circle.yml
rm $SVN_ROOT/trunk/Gemfile*
rm $SVN_ROOT/trunk/readme.md
rm -r $SVN_ROOT/trunk/wpassets
rm -r $SVN_ROOT/trunk/php53tests
rm -r $SVN_ROOT/trunk/php5testvm
# image assets (for WP official pages) need to go into /assets, not /trunk
cp -r $PROJECT_ROOT/wpassets/* $SVN_ROOT/assets/
cd $SVN_ROOT
# tell svn to add the files
svn add trunk/*
# svn commit trunk
svn ci -m "adding files for release $NEW_TAG"
# svn create tag
svn cp trunk tags/$NEW_TAG
# push tag up
svn ci -m "new tag $NEW_TAG"