Skip to content

Commit

Permalink
fix: broken regex
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron <[email protected]>
  • Loading branch information
aarnphm committed Mar 6, 2023
1 parent 50575b2 commit ade99a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ COPTS = [
"-fPIC",
"-Wall",
] + selects.with_or({
"//conditions:default": "0.0.10.dev0",
"//conditions:default": [],
"@bazel_tools//src/conditions:linux_x86_64": [
"-mavx",
"-mavx2",
Expand All @@ -74,7 +74,7 @@ cc_library(
copts = COPTS,
defines = ["BAZEL_BUILD"],
linkopts = selects.with_or({
"//conditions:default": "0.0.10.dev0",
"//conditions:default": [],
"@bazel_tools//src/conditions:darwin": [
"-framework",
"AudioToolbox",
Expand Down
4 changes: 2 additions & 2 deletions tools/release
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ else
echo "Creating git tag '$tag_name'"

sed -i.bak "s/^version =.*/version = \"${VERSION}\"/g" pyproject.toml && rm pyproject.toml.bak
sed -i.bak "s/\"\/\/conditions:default\":.*/\"\/\/conditions:default\": \"${VERSION}\",/g" BUILD.bazel && rm BUILD.bazel.bak
sed -i.bak "s/\"\/\/conditions:default\": \".*/\"\/\/conditions:default\": \"${VERSION}\",/g" BUILD.bazel && rm BUILD.bazel.bak
git add pyproject.toml && git commit --signoff -S -sv -m "release(pyproject): bump version to $VERSION [generated]"

git tag -s "$tag_name" -m "Tag generated by tools/release, version: $VERSION"
Expand All @@ -48,6 +48,6 @@ fi
MINOR="$((${VERSION##*.} + 1))"
DEV_VERSION="${VERSION%.*}.${MINOR}.dev0"
sed -i.bak "s/^version =.*/version = \"$DEV_VERSION\"/g" pyproject.toml && rm pyproject.toml.bak
sed -i.bak "s/\"\/\/conditions:default\":.*/\"\/\/conditions:default\": \"$DEV_VERSION\",/g" BUILD.bazel && rm BUILD.bazel.bak
sed -i.bak "s/\"\/\/conditions:default\": \".*/\"\/\/conditions:default\": \"$DEV_VERSION\",/g" BUILD.bazel && rm BUILD.bazel.bak
git add pyproject.toml BUILD.bazel && git commit --signoff -S -sv -m "chore: bump development version [generated]"
git push origin main

0 comments on commit ade99a3

Please sign in to comment.