Sha256: cb04ec9720c8f3e4028fbc579ff0f0cb0ae08050829d2be7c7b564db6014eb82
Contents?: true
Size: 788 Bytes
Versions: 14
Compression:
Stored size: 788 Bytes
Contents
#!/bin/bash . version-functions.sh mode=$1 if [ -z "$mode" ]; then mode=patch fi version_file=version.txt version_rb=lib/labelizer/version.rb 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 sed -i 's/VERSION.*/VERSION = "'$version'"/' $version_rb git add $version_file $version_rb && git commit -m "version dump: $version" ;; *) exit 1 ;; esac
Version data entries
14 entries across 14 versions & 1 rubygems