Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (23 sloc) 0.837 kb
80688ea @merty Update wp-deploy.sh
authored
1 #!/bin/bash
2f53e81 Initial commit
Mert Yazicioglu authored
2
3 echo "Downloading the latest nightly build of WordPress..."
4 wget -q http://wordpress.org/nightly-builds/wordpress-latest.zip
5 mkdir wp-deploy-nightly
6 unzip -qq -o wordpress-latest.zip -d wp-deploy-nightly
7 rm wordpress-latest.zip
8
9 echo "Downloading the latest stable version of WordPress..."
10 wget -q http://wordpress.org/latest.tar.gz
11 mkdir wp-deploy-stable
12 tar -xzf latest.tar.gz -C wp-deploy-stable
13 rm latest.tar.gz
14
15 IFS=' '
16 while read -r target version;
17 do
18 if [ $version == "n" ]; then
19 printf "Deploying the nightly build to %s...\n" $target
20 cp -r ./wp-deploy-nightly/wordpress/* $target
21 elif [ $version == "s" ]; then
22 printf "Deploying the stable version to %s...\n" $target
23 cp -r ./wp-deploy-stable/wordpress/* $target
24 fi
25 done < wp-deploy.conf
26
195c362 Update wp-deploy.sh
Mert Yazıcıoğlu authored
27 rm -r wp-deploy-{nightly,stable}
Something went wrong with that request. Please try again.