diff --git a/update_version.sh b/update_version.sh new file mode 100755 index 0000000..bc21f1e --- /dev/null +++ b/update_version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +today=$(date +'%y.%m.%d') +today_no_leading_zeros=$(echo "$today" | sed 's/\.0/./g') + +tnlz=$(echo version = \"$today_no_leading_zeros\") +str=$(cat pyproject.toml | grep version) +sed -i "s/$str/$tnlz/" pyproject.toml + +str=$(cat fdlogger/lib/version.py | grep __version__) +tnlz=$(echo __version__ = \"$today_no_leading_zeros\") +sed -i "s/$str/$tnlz/" fdlogger/lib/version.py