Skip to content

Commit

Permalink
Fixed sed defects in release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eputtone committed Feb 26, 2016
1 parent 7aa0e62 commit 6a8265c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Create a Maven project. Add the following to your `pom.xml`. nFlow is available
<dependency>
<groupId>com.nitorcreations</groupId>
<artifactId>nflow-jetty</artifactId>
<version>2.0.0</version>
<version>3.0.0</version>
</dependency>
```
Create a class for starting nFlow in embedded Jetty using H2 memory database.
Expand Down
6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ SNAPSHOT_VERSION=$SNAPSHOT_VERSION-SNAPSHOT
prompt_continue "set version $RELEASE_VERSION to local git repository"

mvn versions:set -DnewVersion=$RELEASE_VERSION
sed -i -e 's/$PREVIOUS_VERSION/$RELEASE_VERSION/g' README.md
sed -i -e "s/$PREVIOUS_VERSION/$RELEASE_VERSION/g" README.md
git commit -am "release $RELEASE_VERSION"

prompt_continue "push version $RELEASE_VERSION to remote git repository"
Expand Down Expand Up @@ -83,12 +83,12 @@ mvn site javadoc:aggregate
git checkout gh-pages

mv target/site/apidocs apidocs/v$RELEASE_VERSION
sed -i '2s/.*/redirect_to: \/nflow\/apidocs\/$RELEASE_VERSION\//' apidocs/current/index.html
sed -i "2s/.*/redirect_to: \/nflow\/apidocs\/v$RELEASE_VERSION\//" apidocs/current/index.html
git add apidocs/current/index.html apidocs/v$RELEASE_VERSION
git commit -m "updated javadocs for version $RELEASE_VERSION"

mv nflow-tests/target/rest-api-docs rest-apidocs/v$RELEASE_VERSION
sed -i '2s/.*/redirect_to: \/nflow\/rest-apidocs\/$RELEASE_VERSION\//' rest-apidocs/current/index.html
sed -i "2s/.*/redirect_to: \/nflow\/rest-apidocs\/v$RELEASE_VERSION\//" rest-apidocs/current/index.html
git add rest-apidocs/current/index.html rest-apidocs/v$RELEASE_VERSION
git commit -m "updated REST API documentation for version $RELEASE_VERSION"

Expand Down

0 comments on commit 6a8265c

Please sign in to comment.