main
#!/usr/bin/env bash VERSION=$1 if [ -z "$VERSION" ]; then echo "Usage: $0 <version>" exit 1 fi printf "# frozen_string_literal: true\n\nmodule Rodiff\n VERSION = \"$VERSION\"\nend\n" > ./lib/rodiff/version.rb bundle > /dev/null echo "$VERSION"