@@ -14,38 +14,38 @@ old_version=$(sed -n "s/^__version__ = \"\(.*\)\"$/\1/p" $VERSION_FILE)
1414
1515if [ $# -ne 1 ]
1616then
17- echo " $HELP_INFORMATION "
17+ echo " $HELP_INFORMATION "
1818else
19- case $1 in
20- major|minor|patch|prerelease|build)
21- new_version=$( python -c " import semver; print(semver.bump_$1 ('$old_version '))" )
22- echo Changing version from " $old_version " to " $new_version "
23- # A temp file is used to provide compatability with macOS development
24- # as a result of macOS using the BSD version of sed
25- tmp_file=/tmp/version.$$
26- sed " s/$old_version /$new_version /" $VERSION_FILE > $tmp_file
27- mv $tmp_file $VERSION_FILE
28- git add $VERSION_FILE
29- git commit -m" Bump version from $old_version to $new_version "
30- git push
31- ;;
32- finalize)
33- new_version=$( python -c " import semver; print(semver.finalize_version('$old_version '))" )
34- echo Changing version from " $old_version " to " $new_version "
35- # A temp file is used to provide compatability with macOS development
36- # as a result of macOS using the BSD version of sed
37- tmp_file=/tmp/version.$$
38- sed " s/$old_version /$new_version /" $VERSION_FILE > $tmp_file
39- mv $tmp_file $VERSION_FILE
40- git add $VERSION_FILE
41- git commit -m" Bump version from $old_version to $new_version "
42- git push
43- ;;
44- show)
45- echo " $old_version "
46- ;;
47- * )
48- echo " $HELP_INFORMATION "
49- ;;
50- esac
19+ case $1 in
20+ major|minor|patch|prerelease|build)
21+ new_version=$( python -c " import semver; print(semver.bump_$1 ('$old_version '))" )
22+ echo Changing version from " $old_version " to " $new_version "
23+ # A temp file is used to provide compatability with macOS development
24+ # as a result of macOS using the BSD version of sed
25+ tmp_file=/tmp/version.$$
26+ sed " s/$old_version /$new_version /" $VERSION_FILE > $tmp_file
27+ mv $tmp_file $VERSION_FILE
28+ git add $VERSION_FILE
29+ git commit -m" Bump version from $old_version to $new_version "
30+ git push
31+ ;;
32+ finalize)
33+ new_version=$( python -c " import semver; print(semver.finalize_version('$old_version '))" )
34+ echo Changing version from " $old_version " to " $new_version "
35+ # A temp file is used to provide compatability with macOS development
36+ # as a result of macOS using the BSD version of sed
37+ tmp_file=/tmp/version.$$
38+ sed " s/$old_version /$new_version /" $VERSION_FILE > $tmp_file
39+ mv $tmp_file $VERSION_FILE
40+ git add $VERSION_FILE
41+ git commit -m" Bump version from $old_version to $new_version "
42+ git push
43+ ;;
44+ show)
45+ echo " $old_version "
46+ ;;
47+ * )
48+ echo " $HELP_INFORMATION "
49+ ;;
50+ esac
5151fi
0 commit comments