Skip to content

Commit

Permalink
Update release.sh (now allows version argument)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 21, 2024
1 parent 956cd7e commit f26ee52
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/sh

read -p "Enter new version number: " version

version="$1"
if [ -z "$version" ]; then
read -p "Enter new version number: " version
fi

##############
## Update install.rdf
##############

perl -pi -e "s/em:version=\"[^\"]*/em:version=\"$version/;" src/install.rdf
rm "install.rdf.bak"
git add src/install.rdf


##############
## Update update.rdf
##############
Expand All @@ -21,10 +21,7 @@ perl -pi -e "s/<em:version>[^<]*/<em:version>$version/;" \
-e "s/<em:updateInfoURL>[^<]*/<em:updateInfoURL>https:\/\/github.com\/UB-Mannheim\/zotero-ocr\/releases\/tag\/$version/;" \
update.rdf
git add "update.rdf"
rm "update.rdf.bak"


git commit -m "Release $version" 1>&2


./build.sh "$version"

0 comments on commit f26ee52

Please sign in to comment.