forked from cpupk/ecd
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update version scripts for Windows/Linux
- Loading branch information
Showing
3 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.project | ||
**/bin/ | ||
**/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@Echo off | ||
REM This script is used for updating the version of the whole plugin. | ||
REM | ||
REM Usage: ./update-version.sh VERSION | ||
REM Example: ./update-version.sh 3.1.0-SNAPSHOT | ||
|
||
REM Note that automatically updating the version only works when the versions | ||
REM in the files have not been manually edited and actually match the current | ||
REM version. | ||
|
||
SET VERSION="%*" | ||
|
||
if "%~1"=="" goto blank | ||
|
||
call mvn org.eclipse.tycho:tycho-versions-plugin:4.0.6:set-version -DnewVersion="%VERSION%" -Dtycho.mode=maven | ||
call mvn org.eclipse.tycho:tycho-versions-plugin:4.0.6:update-eclipse-metadata -DnewVersion="%VERSION%" -Dtycho.mode=maven | ||
goto end | ||
|
||
:blank | ||
echo "update-version.cmd VERSION" | ||
|
||
:end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters