Skip to content

Commit

Permalink
Fixed issue #939.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsschmidt1337 committed Feb 20, 2023
1 parent 496eb27 commit f28c99e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions increment_version_number.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
VERSION=$(cat src/org/nschmidt/ldparteditor/i18n/Version.properties | grep 'VERSION' | sed 's/^.*= //')
NEXT_VERSION=$(echo $VERSION | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}')
echo "current version $VERSION"
echo "next version $NEXT_VERSION"
sed -i "s/$VERSION/$NEXT_VERSION/g" "build-linux.xml"
sed -i "s/$VERSION/$NEXT_VERSION/g" "build-macos.xml"
sed -i "s/$VERSION/$NEXT_VERSION/g" "build-windows.xml"
sed -i "s/$VERSION/$NEXT_VERSION/g" "src/org/nschmidt/ldparteditor/i18n/Version.properties"
git add build-linux.xml
git add build-macos.xml
git add build-windows.xml
git add src/org/nschmidt/ldparteditor/i18n/Version.properties
git commit -m "Updated version number to $NEXT_VERSION"
echo "Updated version number to $NEXT_VERSION"
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class RectifierSettings {
private BigDecimal maximumAngle = new BigDecimal("0.95"); //$NON-NLS-1$
private boolean colourise = false;
private boolean noQuadConversation = false;
private boolean noRectConversationOnAdjacentCondlines = false;
private boolean noRectConversationOnAdjacentCondlines = true;
private boolean noBorderedQuadToRectConversation = false;
private boolean verbose = false;
private int scope = 0;
Expand Down

0 comments on commit f28c99e

Please sign in to comment.