Skip to content

Commit 3e159b4

Browse files
committed
chore: update bump version script
1 parent 6e550e2 commit 3e159b4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scripts/bump-version.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ if [ -z "$VERSION" ]; then
2222
exit 1
2323
fi
2424

25-
# Just a placeholder for now
26-
exit 0
27-
2825
# Files to update
29-
FILES=()
26+
FILES=("netlinx-mode.el")
3027

3128
# Check if all files exist before attempting to modify them
3229
for file in "${FILES[@]}"; do
@@ -37,7 +34,15 @@ for file in "${FILES[@]}"; do
3734
done
3835

3936
# Update version in each file
37+
if ! sed -i "s/^;; Version: .*$/;; Version: ${VERSION}/" netlinx-mode.el; then
38+
echo "Error: sed command failed"
39+
exit 1
40+
fi
4041

4142
# Verify the changes were made
43+
if ! grep -q "^;; Version: ${VERSION}$" netlinx-mode.el; then
44+
echo "Error: Failed to update version in netlinx-mode.el"
45+
exit 1
46+
fi
4247

4348
echo "Version bumped to $VERSION in ${FILES[*]}"

0 commit comments

Comments
 (0)