Changeset 1089532
- Timestamp:
- 02/14/2015 12:18:41 AM (11 years ago)
- Location:
- twigify/trunk
- Files:
-
- 4 edited
-
bin/update-svn.sh (modified) (7 diffs)
-
lib/ContentTemplates/Alert.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
twigify.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
twigify/trunk/bin/update-svn.sh
r1058659 r1089532 1 1 #! /bin/bash 2 # based on https://github.com/GaryJones/wordpress-plugin-git-flow-svn-deploy2 # Based on https://github.com/GaryJones/wordpress-plugin-git-flow-svn-deploy 3 3 4 PLUGINSLUG='twigify' 4 #SVNPATH="${input:-$default_svnpath}" # Populate with default if empty 5 #SVNURL="${input:-$default_svnurl}" # Populate with default if empty 6 #SVNUSER="${input:-$default_svnuser}" # Populate with default if empty 7 #PLUGINDIR="${input:-$default_plugindir}" # Populate with default if empty 8 #MAINFILE="${input:-$default_mainfile}" # Populate with default if empty 5 9 6 # Set up some default values. Feel free to change these in your own script 7 CURRENTDIR=`pwd` 8 echo "CURRENT is $CURRENTDIR" 9 SVNPATH="/tmp/$PLUGINSLUG" 10 SVNURL="http://plugins.svn.wordpress.org/$PLUGINSLUG" 11 SVNUSER="mpvanwinkle77" 12 PLUGINDIR="$CURRENTDIR" 13 MAINFILE="$PLUGINSLUG.php" 10 echo "That's all of the data collected." 11 echo 12 echo "Slug: $PLUGINSLUG" 13 echo "Temp checkout path: $SVNPATH" 14 echo "Remote SVN repo: $SVNURL" 15 echo "SVN username: $SVNUSER" 16 echo "Plugin directory: $PLUGINDIR" 17 echo "Main file: $MAINFILE" 18 echo 19 20 # Allow user cancellation 21 if [ "$PROCEED" != "y" ]; then echo "Aborting..."; exit 1; fi 14 22 15 23 # git config … … 18 26 # Let's begin... 19 27 echo ".........................................." 20 echo 28 echo 21 29 echo "Preparing to deploy WordPress plugin" 22 echo 30 echo 23 31 echo ".........................................." 24 echo 32 echo 25 33 26 34 # Check version in readme.txt is the same as plugin file after translating both to unix line breaks to work around grep's failure to identify mac line breaks … … 34 42 echo "Versions match in readme.txt and $MAINFILE. Let's proceed..." 35 43 44 # GaryJ: Ignore check for git tag, as git flow release finish creates this. 45 #if git show-ref --tags --quiet --verify -- "refs/tags/$NEWVERSION1" 46 # then 47 # echo "Version $NEWVERSION1 already exists as git tag. Exiting...."; 48 # exit 1; 49 # else 50 # echo "Git version does not exist. Let's proceed..." 51 #fi 52 36 53 echo "Changing to $GITPATH" 37 54 cd $GITPATH 55 # GaryJ: Commit message variable not needed . Hard coded for SVN trunk commit for consistency. 56 #echo -e "Enter a commit message for this new version: \c" 57 #read COMMITMSG 58 # GaryJ: git flow release finish already covers this commit. 59 #git commit -am "$COMMITMSG" 60 61 # GaryJ: git flow release finish already covers this tag creation. 62 #echo "Tagging new version in git" 63 #git tag -a "$NEWVERSION1" -m "Tagging version $NEWVERSION1" 64 38 65 echo "Pushing git master to origin, with tags" 39 66 git push origin master 40 67 git push origin master --tags 41 68 69 echo 42 70 echo "Creating local copy of SVN repo trunk ..." 43 svn checkout $SVNURL --username=$SVNUSER --password=$SVNPASS $SVNPATH44 svn update -- username=$SVNUSER --password=$SVNPASS --quiet $SVNPATH/trunk --set-depth infinity71 svn checkout $SVNURL $SVNPATH --depth immediates 72 svn update --quiet $SVNPATH/trunk --set-depth infinity 45 73 46 74 echo "Ignoring GitHub specific files" … … 52 80 echo "Exporting the HEAD of master from git to the trunk of SVN" 53 81 git checkout-index -a -f --prefix=$SVNPATH/trunk/ 82 83 # If submodule exist, recursively check out their indexes 84 if [ -f ".gitmodules" ] 85 then 86 echo "Exporting the HEAD of each submodule from git to the trunk of SVN" 87 git submodule init 88 git submodule update 89 git config -f .gitmodules --get-regexp '^submodule\..*\.path$' | 90 while read path_key path 91 do 92 #url_key=$(echo $path_key | sed 's/\.path/.url/') 93 #url=$(git config -f .gitmodules --get "$url_key") 94 #git submodule add $url $path 95 echo "This is the submodule path: $path" 96 echo "The following line is the command to checkout the submodule." 97 echo "git submodule foreach --recursive 'git checkout-index -a -f --prefix=$SVNPATH/trunk/$path/'" 98 git submodule foreach --recursive 'git checkout-index -a -f --prefix=$SVNPATH/trunk/$path/' 99 done 100 fi 54 101 55 102 # Support for the /assets folder on the .org repo. … … 67 114 # Add all new files that are not set to be ignored 68 115 svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk '{print $2}' | xargs svn add 69 svn commit --username=$SVNUSER - -password=$SVNPASS -m "Preparing for $NEWVERSION1 release"116 svn commit --username=$SVNUSER -m "Preparing for $NEWVERSION1 release" 70 117 71 118 echo "Updating WordPress plugin repo assets and committing" … … 76 123 svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk '{print $2}' | xargs svn add 77 124 svn update --accept mine-full $SVNPATH/assets/* 78 svn commit --username=$SVNUSER - -password=$SVNPASS -m "Updating assets"125 svn commit --username=$SVNUSER -m "Updating assets" 79 126 80 127 echo "Creating new SVN tag and committing it" … … 86 133 svn delete --force --quiet $SVNPATH/tags/$NEWVERSION1/trunk 87 134 cd $SVNPATH/tags/$NEWVERSION1 88 svn commit --username=$SVNUSER - -password=$SVNPASS -m "Tagging version $NEWVERSION1"135 svn commit --username=$SVNUSER -m "Tagging version $NEWVERSION1" 89 136 90 137 echo "Removing temporary directory $SVNPATH" -
twigify/trunk/lib/ContentTemplates/Alert.php
r1043611 r1089532 10 10 public static function instance() { 11 11 if(!self::$instance) { 12 self::$instance = new Self();12 self::$instance = new self(); 13 13 } 14 14 return self::$instance; -
twigify/trunk/readme.txt
r1076306 r1089532 5 5 Requires at least: 4.0.1 6 6 Tested up to: 4.1 7 Stable tag: 1.1. 1-beta7 Stable tag: 1.1.2-beta 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 59 59 = 1.1.1-beta = 60 60 * removes debuging code accidentally left behind. 61 62 = 1.1.2-beta = 63 * lowercase self for compatibility with php 5.4 -
twigify/trunk/twigify.php
r1076306 r1089532 5 5 Description: Allows you to create content templates that will conditionally override the content of a post or page or customer post type 6 6 Author: Mike Van Winkle 7 Version: 1.1. 1-beta7 Version: 1.1.2-beta 8 8 Author URI: http://mikevanwinkle.com 9 9 Text Domain: twigify 10 10 Domain Path: /lang 11 11 */ 12 define('CT_VERSION', ' 0.1-alpha');12 define('CT_VERSION', '1.1.2-beta'); 13 13 14 14 // register autoloader
Note: See TracChangeset
for help on using the changeset viewer.