forked from chms/jdotxt
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for version managing; add version to GUI header
Signed-off-by: Ivan Tishchenko <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
full_ver="$1" | ||
free_form_ver="$2" | ||
|
||
echo "Updating to full version $full_ver and free-form version $free_form_ver" | ||
|
||
sed -i '/public static final String VERSION/s/".*"/"'"$free_form_ver"'"/' src/com/chschmid/jdotxt/Jdotxt.java | ||
|
||
sed -i \ | ||
-e "/<fileVersion>\|<productVersion>/s/>.*</>$full_ver</" \ | ||
-e "/<txtFileVersion>\|<txtProductVersion>/s/>.*</>$free_form_ver</" \ | ||
-e "/<originalFilename>/s/>.*</>jdotxt-$free_form_ver-java8.exe</" \ | ||
launch4j.xml |
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