Skip to content

Commit

Permalink
Add scripts to increment version number
Browse files Browse the repository at this point in the history
  • Loading branch information
subdan committed Nov 27, 2020
1 parent ea88984 commit 53ad654
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Scripts/increment_major_version.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd "$( dirname "${BASH_SOURCE[0]}" )"
cd ..
perl -i -pe 's/\b(\d+)(?=.\d+")/$1+1/e' FigmaExport.podspec
perl -i -pe 's/\b(\d+)(?=.\d+")/$1+1/e' ./Sources/FigmaExport/Subcommands/VersionOptions.swift
4 changes: 4 additions & 0 deletions Scripts/increment_minor_version.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd "$( dirname "${BASH_SOURCE[0]}" )"
cd ..
perl -i -pe 's/\b(\d+)(?=\D*$)/$1+1/e' FigmaExport.podspec
perl -i -pe 's/\b(\d+)(?=\D*$)/$1+1/e' ./Sources/FigmaExport/Subcommands/VersionOptions.swift

0 comments on commit 53ad654

Please sign in to comment.