mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
520 B
520 B
| id | title | notetype | date |
|---|---|---|---|
| 51ff6f20-a22f-11ec-a651-5f6a285d9d33 | bash script to bump the build number and tag it | feed | 2022-03-12 |
#!/bin/bash
set -e
# Find and increment the version number.
perl -i -pe 's/^(version:\s+\d+\.\d+\.\d+\+)(\d+)$/$1.($2+1)/e' client/pubspec.yaml
# Commit and tag this change.
version=`grep 'version: ' client/pubspec.yaml | sed 's/version: //'`
git commit -m "Bump version to $version" client/pubspec.yaml
git tag $version