summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2011-08-12 09:51:28 +0200
committerAnand Avati <avati@gluster.com>2011-08-12 01:04:49 -0700
commit9fa3aeadfe162483e01f285c7fd4d5f0fb712c18 (patch)
tree0d98d2198397c68e027a9c59f8cfaa8c4b2d5cc6
parentcc756d0075ff9829700cfc74d1bf3e2080523f65 (diff)
Use bourne shell, fix error in previous commit
Change-Id: Id2a304d5090eb2564c5d56ea260fa53b9b17d0d5 Reviewed-on: http://review.gluster.com/223 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
-rwxr-xr-xrfc.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/rfc.sh b/rfc.sh
index 1ee6d042d75..10679f6c5b0 100755
--- a/rfc.sh
+++ b/rfc.sh
@@ -1,10 +1,10 @@
-#!/bin/bash -e
+#!/bin/sh -e
branch="master";
-function set_hooks_commit_msg()
+set_hooks_commit_msg()
{
f=".git/hooks/commit-msg";
u="http://review.gluster.com/tools/hooks/commit-msg";
@@ -19,7 +19,7 @@ function set_hooks_commit_msg()
}
-function is_num()
+is_num()
{
local num;
@@ -29,7 +29,7 @@ function is_num()
}
-function rebase_changes()
+rebase_changes()
{
git fetch;
@@ -37,7 +37,7 @@ function rebase_changes()
}
-function editor_mode()
+editor_mode()
{
if [ $(basename "$1") = "git-rebase-todo" ]; then
sed 's/^pick /reword /g' "$1" > $1.new && mv $1.new $1;
@@ -61,7 +61,7 @@ function editor_mode()
fi
sed -i "s/^\(Change-Id: .*\)$/\1\nBUG: $bug/g" $1 > $1.new && \
- mv $i.new $i
+ mv $1.new $1;
return;
done
fi
@@ -74,13 +74,13 @@ EOF
}
-function assert_diverge()
+assert_diverge()
{
git diff origin/$branch..HEAD | grep -q .;
}
-function main()
+main()
{
if [ -e "$1" ]; then
editor_mode "$@";