From fcf9f5fb73a850ad6e5c278f17a7d9a85d1d01ae Mon Sep 17 00:00:00 2001 From: "Wen.Liao" Date: Thu, 9 Apr 2015 20:47:51 +0800 Subject: [PATCH] Add file to run rake isolate quickly --- utils/rake_post.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 utils/rake_post.sh diff --git a/utils/rake_post.sh b/utils/rake_post.sh new file mode 100755 index 00000000000..57e770ffca3 --- /dev/null +++ b/utils/rake_post.sh @@ -0,0 +1,19 @@ +#!/bin/bash -x +if [ ! -f "$1" ] ; then + "No such file" + exit +fi + +SCRIPT_FILE="/tmp/run.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