Skip to content

Commit

Permalink
Script for rake post
Browse files Browse the repository at this point in the history
  • Loading branch information
zzz0072 committed Apr 10, 2015
1 parent 2c01160 commit e4e06eb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions utils/rake_post.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
# Check parameter
if [ "$#" = "0" ] ; then
echo "usage: $(basename $0) [octopress markdown flie]"
exit
fi

# Check file
if [ ! -f "$1" ] ; then
echo "No such file: $1"
exit
fi

# Let's create and process markdown
SCRIPT_FILE="/tmp/run_rake.sh"

cat << EOF_ > $SCRIPT_FILE
#!/bin/bash
rake isolate['$1']
rake generate
rake preview
rake integrate
rake generate
EOF_

chmod +x $SCRIPT_FILE
bash -x $SCRIPT_FILE

0 comments on commit e4e06eb

Please sign in to comment.