[wp-hackers] Quick Install WP from SVN

Aaron Brazell emmensetech at gmail.com
Tue Feb 3 20:14:46 GMT 2009


On Tue, Feb 3, 2009 at 3:11 PM, Beau Lebens <beau at dentedreality.com.au>wrote:

> In case anyone's interested, I thought I'd share this quick shell
> script I use to set up a new install of WP. Usage is like this
> (assuming it's saved as a file called "wordpress" and is in your
> path):
>
> $ wordpress wp27 tags/2.7
>
> That would install 2.7 into a directory called "wp27" and would
> attempt to create a database called "wp27" as well.
>
> It's very basic, and doesn't do any checks of any kind, but hey -- it
> gets the job done. Also, this is for development purposes on a local
> machine only (thus the open permissions), and is not recommended for
> production/live installs.
>
> Just paste the following into a file, call it "wordpress" (no
> extension), drop it into your path and make it excutable.
>
> Works on my Mac. YMMV.
>
> Cheers,
> Beau
>
> ---
> #!/bin/sh
>
> REV=trunk
> OUTDIR=.
>
> if [ "$1" != "" ]; then
>        OUTDIR=$1
> fi
>
> if [ "$2" != "" ]; then
>        REV=$2
> fi
>
> svn co http://svn.automattic.com/wordpress/${REV}/<http://svn.automattic.com/wordpress/$%7BREV%7D/>${OUTDIR}
> sudo chmod -R 777 ${OUTDIR}
> echo "CREATE DATABASE \`${OUTDIR}\`" | mysql -u root


Nice! Throw some curl in there to run the install script as well. :)


-- 
Aaron Brazell
web:: www.technosailor.com
phone:: 410-608-6620
skype:: technosailor
twitter:: @technosailor


More information about the wp-hackers mailing list