Permalink
Browse files

added a utility script to change all of git refspecs in rebar.configs

  • Loading branch information...
1 parent 78463e5 commit ee5eda990e0dd72b344336f1b1d8aacb7910651a @epoll epoll committed Jul 12, 2012
Showing with 10 additions and 4 deletions.
  1. +0 −1 .gitignore
  2. +7 −0 git_switch_head.sh
  3. +3 −3 rebar.config
View
@@ -1,6 +1,5 @@
apps/
deps/
-*.sh
rel/leo_manager/leo_manager/
rel/leo_gateway/leo_gateway/
rel/leo_storage/leo_storage/
View
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ $# -lt 1 ]; then
+ echo 'missing operand. specify a git refspec'
+ exit 1
+fi
+find . -name "rebar.config" -print0 |xargs -0 grep leo-project|awk -F ":" '{print $1}'|uniq|xargs sed -i -s "s/{git,\([^,]\+leo-project[^,]\+\),\\s\+\"\([^\"]\+\)/{git,\1, \"$1/g"
View
@@ -1,9 +1,9 @@
{require_otp_vsn, "R14B04|R15B01"}.
{deps, [
- {leo_manager, ".*", {git, "https://github.com/leo-project/leo_manager.git", "master"}},
- {leo_storage, ".*", {git, "https://github.com/leo-project/leo_storage.git", "master"}},
- {leo_gateway, ".*", {git, "https://github.com/leo-project/leo_gateway.git", "master"}}
+ {leo_manager, ".*", {git, "https://github.com/leo-project/leo_manager.git", "develop"}},
+ {leo_storage, ".*", {git, "https://github.com/leo-project/leo_storage.git", "develop"}},
+ {leo_gateway, ".*", {git, "https://github.com/leo-project/leo_gateway.git", "develop"}}
]}.
{sub_dirs, [

0 comments on commit ee5eda9

Please sign in to comment.