Sha256: 419ffba0a61e670224f628ee94f96e6fc96d754be12697807694de7718a581ff
Contents?: true
Size: 679 Bytes
Versions: 13
Compression:
Stored size: 679 Bytes
Contents
#!/bin/bash . version-functions.sh mode=$1 if [ -z "$mode" ]; then mode=patch fi version_file=version.txt current_version=$(cat $version_file) git fetch --tags current_tag=$(git tag | tail -1) if [ "v$current_version" != "$current_tag" ]; then read -p "file: '$current_version', tag: '$current_tag'. continue? [Y/n] " confirm case $confirm in Y*|y*) ;; *) exit 1 ;; esac fi version_build_next "$mode" $(cat $version_file) read -p "dump version: $version. OK? [Y/n] " confirm case $confirm in Y*|y*) echo $version > $version_file git add $version_file && git commit -m "version dump: $version" ;; *) exit 1 ;; esac
Version data entries
13 entries across 13 versions & 1 rubygems