Skip to content

Commit

Permalink
Allow spaces in finding plubin.sbt paths
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial committed Jul 19, 2015
1 parent 989f1d6 commit 2df33fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

newVersion=`perl -npe "s/version in ThisBuild\s+:=\s+\"(.*)\"/\1/" version.sbt | sed -e "/^$/d"`

for f in $(/bin/ls src/sbt-test/sbt-pack/*/project/plugins.sbt); do \
echo $f; \
perl -i -npe "s/addSbtPlugin\(\"org.xerial.sbt\".*/addSbtPlugin\(\"org.xerial.sbt\" % \"sbt-pack\" % \"$newVersion\"\)/" $f; \
find src/sbt-test/sbt-pack -name "plugins.sbt" -print0 | while read -d $'\0' f; do
echo $f;
perl -i -npe "s/addSbtPlugin\(\"org.xerial.sbt\".*/addSbtPlugin\(\"org.xerial.sbt\" % \"sbt-pack\" % \"$newVersion\"\)/" "$f";
done;

0 comments on commit 2df33fe

Please sign in to comment.