[go: nahoru, domu]

Skip to content

Commit

Permalink
Update protocw
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Laurindo dos Santos authored Aug 22, 2019
1 parent 405bbb9 commit 97de69e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions protocw
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,22 @@ configure() {

if [ -f pom.xml ]
then
print "changing pom.xml ..."
println ""
print "Maven detected, replacing existing calls to protoc with protocw..."
sed -E -i "" "s /usr/local/bin/protoc(-[0-9]+\.[0-9]+\.[0-9]+)? ./protocw g" pom.xml
println " done."
else
println "pom.xml doesn't exist"
fi

if [ -d .git ]
then
print "git detected, adding .protocw to .gitignore ..."
println ""
print "Git detected, adding .protocw to .gitignore if necessary..."

if ! grep -q ".protocw" .gitignore
then
printf "\n.protocw" >> .gitignore
println " done."
else
println " already exists."
fi
println " done."
fi

exit
Expand Down

0 comments on commit 97de69e

Please sign in to comment.