Skip to content

Commit

Permalink
fix ReleaseStage[36] for recent build changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivan- committed Nov 10, 2016
1 parent 6d0e625 commit 9b04cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/ReleaseStage3.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ object ReleaseStage3 extends App {

// make sure the oldVersion matches whats in the build
run(Process(
Seq("grep", "-q", s"""version := "$oldVersion"""", "LongevityBuild.scala"),
Seq("grep", "-q", s"""version := "$oldVersion"""", "BuildSettings.scala"),
projectDir))

// update to newVersion in the build
run(Process(
Seq(
"sed", "-i", "",
"-e", s"""s/version := "$oldVersion"/version := "$newVersion"/""",
"LongevityBuild.scala"),
"BuildSettings.scala"),
projectDir))

// commit and push the new version of the build
run(Process("git stage LongevityBuild.scala", projectDir))
run(Process("git stage BuildSettings.scala", projectDir))
run(Process(Seq("git", "commit", "-m", s"up build version to $newVersion"), longevityDir))
run(Process("git push", longevityDir))

Expand Down
6 changes: 3 additions & 3 deletions bin/ReleaseStage6.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object ReleaseStage6 extends App {

// make sure the oldVersion matches whats in the build
run(Process(
Seq("grep", "-q", s"""version := "$oldVersion"""", "LongevityBuild.scala"),
Seq("grep", "-q", s"""version := "$oldVersion"""", "BuildSettings.scala"),
projectDir))

// create branch x.y
Expand All @@ -63,11 +63,11 @@ object ReleaseStage6 extends App {
Seq(
"sed", "-i", "",
"-e", s"""s/version := "$oldVersion"/version := "$newVersion"/""",
"LongevityBuild.scala"),
"BuildSettings.scala"),
projectDir))

// commit and push the new version of the build
run(Process("git stage LongevityBuild.scala", projectDir))
run(Process("git stage BuildSettings.scala", projectDir))
run(Process(Seq("git", "commit", "-m", s"up build version to $newVersion"), longevityDir))
run(Process("git push", longevityDir))

Expand Down

0 comments on commit 9b04cac

Please sign in to comment.