Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 14 lines (11 sloc) 0.394 kB
#!/bin/sh
if echo $1 | grep -q -v "^\{.\+\}$"; then
branch_or_tag=\"${1}\"
else
branch_or_tag=$1
fi
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, $branch_or_tag}}/g"
Jump to Line
Something went wrong with that request. Please try again.