Skip to content

Commit ecf3ebf

Browse files
committed
Add set-version.sh
1 parent 0330743 commit ecf3ebf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Build/set-version.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
# Increments version of nugets UnitNets, UnitsNet.NumberExtensions.
3+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4+
set_version_script="$script_dir/set-version-UnitsNet.ps1"
5+
6+
if [ $# -eq 1 ]; then
7+
powershell -NoProfile $set_version_script -setVersion $1
8+
exit 0
9+
else
10+
echo "Usage: ./set-version.sh <version>"
11+
echo ""
12+
echo "Examples:"
13+
echo "$ ./set-version.sh 5.0.0-alpha001"
14+
echo "$ ./set-version.sh 5.1.2"
15+
exit 1
16+
fi

0 commit comments

Comments
 (0)