Skip to content

Commit

Permalink
Add sphinx/conf.py support
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmilano committed Nov 8, 2022
1 parent 1201a5c commit 5486d5c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions avc-version
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ case "$1" in
done
echo -n "setup.py: "
grep version setup.py
echo -n "sphinx/conf.py: "
grep release sphinx/conf.py
) | awk "
function version_to_number(v) {
n = split(v, a, \".\");
Expand Down Expand Up @@ -90,5 +92,18 @@ case "$1" in
sed -E -i -e "s@version='[0-9abr.]+'@version='$version'@" setup.py
;;
esac

echo '<<< sphinx/conf.py >>>'
case "$(uname)" in
Darwin)
# release = '22.3.0'
sed -E -i '' -e "s@release = '[0-9abr.]+'@release = '$version'@" sphinx/conf.py
;;

Linux)
sed -E -i -e "s@release = '[0-9abr.]+'@release = '$version'@" sphinx/conf.py
;;
esac

;;
esac

0 comments on commit 5486d5c

Please sign in to comment.