This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<target name="wordpress.upgrade"> | |
<property name="tmp" value="/tmp" /> | |
<property name="src" value="${tmp}/wordpress" /> | |
<delete dir="${src}" includeemptydirs="true" failonerror="true" /> | |
<exec dir="${tmp}" command="curl -s http://wordpress.org/latest.tar.gz | tar -xz" /> | |
<delete dir="wp-admin" includeemptydirs="true" failonerror="true" /> | |
<delete dir="wp-includes" includeemptydirs="true" failonerror="true" /> | |
<move file="wp-config.php" tofile="wp-config.php.bak" overwrite="true"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Git hook that prevents commits to master | |
# use --no-verify to bypass this hook | |
# ex: git commit -m "init commit" --no-verify | |
branch=`git symbolic-ref HEAD` | |
if [ "$branch" = "refs/heads/master" ]; then | |
echo "Direct commits to the branch master are not allowed" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew list -1 | while read line; do brew unlink $line; brew link $line; done |