Skip to content

Commit

Permalink
Update setversion.sh script to handle dependencies as well
Browse files Browse the repository at this point in the history
  • Loading branch information
DarwinAwardWinner committed Sep 22, 2024
1 parent c2326fe commit 2003aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Added automatically by `eldev init'.
/.eldev
/Eldev-local
/orig_*.el
4 changes: 3 additions & 1 deletion setversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ TARGET_VERSION="$1"
if [ -n "$TARGET_VERSION" ]; then
echo "Updating version to $TARGET_VERSION";
perl -i'orig_*' -lap \
-e "s/Version: [0-9.]+/Version: $TARGET_VERSION/g;" \
-e "s/;; Version: [0-9.]+/;; Version: $TARGET_VERSION/g;" \
-e "s/;; Package-Requires: (.*)pseudo-daemon \"[0-9.]+\"/;; Package-Requires: \$1pseudo-daemon \"$TARGET_VERSION\"/g;" \
*.el
rm orig_*.el
else
echo "Usage: $0 VERSION_NUMBER"
fi

0 comments on commit 2003aed

Please sign in to comment.