Changeset 853485
- Timestamp:
- 02/07/2014 10:55:37 PM (12 years ago)
- Location:
- press-pay/trunk
- Files:
-
- 3 edited
-
bin/deploy.sh (modified) (4 diffs)
-
press-pay.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
press-pay/trunk/bin/deploy.sh
r848917 r853485 12 12 # Get some user input 13 13 # Can't use the -i flag for read, since that doesn't work for bash 3 14 read -e -p "1a) WordPress Repo Plugin Slug e.g. my-awesome-plugin: " PLUGINSLUG14 read -e -p "1a) WordPress Repo Plugin Slug e.g. press-pay: " PLUGINSLUG 15 15 echo 16 16 17 17 # Set up some default values. Feel free to change these in your own script 18 18 CURRENTDIR=`pwd` 19 default_svnpath="/ tmp/$PLUGINSLUG"19 default_svnpath="/User/spinlock/WordPress/Subversion/$PLUGINSLUG" 20 20 default_svnurl="http://plugins.svn.wordpress.org/$PLUGINSLUG" 21 default_svnuser=" GaryJ"22 default_plugindir="$CURRENTDIR /$PLUGINSLUG"21 default_svnuser="presspay" 22 default_plugindir="$CURRENTDIR" 23 23 default_mainfile="$PLUGINSLUG.php" 24 24 … … 77 77 echo "Versions match in readme.txt and $MAINFILE. Let's proceed..." 78 78 79 # GaryJ: Ignore check for git tag, as git flow release finish creates this.80 #if git show-ref --tags --quiet --verify -- "refs/tags/$NEWVERSION1"81 # then82 # echo "Version $NEWVERSION1 already exists as git tag. Exiting....";83 # exit 1;84 # else85 # echo "Git version does not exist. Let's proceed..."86 #fi87 88 79 echo "Changing to $GITPATH" 89 80 cd $GITPATH 90 # GaryJ: Commit message variable not needed . Hard coded for SVN trunk commit for consistency.91 #echo -e "Enter a commit message for this new version: \c"92 #read COMMITMSG93 # GaryJ: git flow release finish already covers this commit.94 #git commit -am "$COMMITMSG"95 81 96 # GaryJ: git flow release finish already covers this tag creation. 97 #echo "Tagging new version in git" 98 #git tag -a "$NEWVERSION1" -m "Tagging version $NEWVERSION1" 99 100 echo "Pushing git master to origin, with tags" 101 git push origin master 102 git push origin master --tags 103 104 echo 105 echo "Creating local copy of SVN repo trunk ..." 106 svn checkout $SVNURL/trunk $SVNPATH/trunk 82 echo 83 echo "Updating local copy of SVN repo trunk ..." 84 svn up $SVNPATH/trunk 107 85 108 86 echo "Ignoring GitHub specific files" … … 124 102 fi 125 103 126 # Support for the /assets folder on the .org repo.127 echo "Moving assets"128 # Make the directory if it doesn't already exist129 mkdir $SVNPATH/assets/130 mv $SVNPATH/trunk/assets/* $SVNPATH/assets/131 svn add $SVNPATH/assets/132 svn delete $SVNPATH/trunk/assets133 134 104 echo "Changing directory to SVN and committing to trunk" 135 105 cd $SVNPATH/trunk/ 136 106 # Delete all files that should not now be added. 137 svn status | grep -v "^.[ \t]*\..*" | grep "^\!" | awk '{print $2}' | xargs svn del 107 # Skip this step to obfuscate the svn repo. 108 #svn status | grep -v "^.[ \t]*\..*" | grep "^\!" | awk '{print $2}' | xargs svn del 138 109 # Add all new files that are not set to be ignored 139 110 svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk '{print $2}' | xargs svn add 140 111 svn commit --username=$SVNUSER -m "Preparing for $NEWVERSION1 release" 141 142 echo "Updating WordPress plugin repo assets and committing"143 cd $SVNPATH/assets/144 # Add all new files that are not set to be ignored145 svn status | grep -v "^.[ \t]*\..*" | grep "^\!" | awk '{print $2}' | xargs svn del146 # Add all new files that are not set to be ignored147 svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk '{print $2}' | xargs svn add148 #svn commit --username=$SVNUSER -m "Updating assets"149 112 150 113 echo "Creating new SVN tag and committing it" … … 154 117 #svn commit --username=$SVNUSER -m "Tagging version $NEWVERSION1" 155 118 156 echo "Removing temporary directory $SVNPATH"157 cd $SVNPATH158 cd ..159 #rm -fr $SVNPATH/160 161 119 echo "*** FIN ***" -
press-pay/trunk/press-pay.php
r849016 r853485 3 3 * Plugin Name: PressPay 4 4 * Plugin URI: http://atomicbroadcast.net/ 5 * Description: A plugin to easily turn any WordPress blog into a webstore. 5 * Description: A plugin to easily turn any WordPress blog into a webstore. Click the "Connect with Stripe" button to configure your account then add a shortcode (ex: [presspay amount="2000" product_id="007" description="Wonder Widget"]) to any post or page. 6 6 * Author: Andrew Dixon 7 7 * Author URI: http://atomicbroadcast.net 8 * Version: 2. 08 * Version: 2.1 9 9 *****************************************************************************/ 10 10 /********************************** -
press-pay/trunk/readme.txt
r849016 r853485 5 5 Requires at least: 3.0.1 6 6 Tested up to: 3.8.1 7 Stable tag: 2. 07 Stable tag: 2.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 28 28 29 29 == Frequently Asked Questions == 30 31 = What parameters does the presspay shortcode support? = 32 33 amount: The price you will charge the client (in cents). 34 image: A relative URL pointing to a square image of your brand or product. The recommended 35 minimum size is 128x128px. 36 headline: Name of the product (defaults to the blog title). 37 description: Description of the product (defaults to blog description). 38 product_id: Unique identifier for the product (required if you add multiple payment buttons to 39 a page. 40 41 = Can I put more than one button on a page? = 42 43 Yes. Just make sure that each shortcode has a unique product id. 44 Ex: 45 [presspay amount="2000" product_id="1" description="stuff"] 46 [presspay amount="3000" product_id="2" description="things"] 30 47 31 48 = Do I need a Stripe account to use Press Pay? = … … 53 70 == Changelog == 54 71 55 = 2.0= 72 = 2.1 = 73 Allow multiple buttons on a page. You must provide a product id for multiple buttons. 74 = 2.0 = 56 75 Easier configuration with Stripe Connect. 57 76 = 1.7 =
Note: See TracChangeset
for help on using the changeset viewer.