17 lines
394 B
Bash
17 lines
394 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
source development-version.sh
|
||
|
|
||
|
if [ -z "$VERSION" ]
|
||
|
then
|
||
|
echo "Error: VERSION needs to be set!"
|
||
|
else
|
||
|
echo "Release version: $VERSION"
|
||
|
# TODO: git tag and commit
|
||
|
while IFS='.' read -ra NUM; do
|
||
|
echo "VERSION=${NUM[0]}.${NUM[1]}.$((NUM[2]+1)) \$@" > development-version.sh
|
||
|
done <<< "$VERSION"
|
||
|
|
||
|
echo "Version bumped in file 'development-version.sh'"
|
||
|
fi
|