mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-08-30 13:43:54 +08:00
39 lines
840 B
Bash
Executable file
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"
|