[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / tool / missing-baseruby.bat
blob87a9857e066fcc501b15f700463de9d1b6f7e529
1 :"" == "
2 @echo off || (
3   :warn
4     echo>&2.%~1
5   goto :eof
6   :abort
7     exit /b 1
8 )||(
9 :)"||(
10   s = %^#
12 : ; call() { local call=${1#:}; shift; $call "$@"; }
13 : ; warn() { echo "$1" >&2; }
14 : ; abort () { exit 1; }
16 call :warn "executable host ruby is required.  use --with-baseruby option."
17 call :warn "Note that BASERUBY must be Ruby 3.0.0 or later."
18 call :abort
19 : || (:^; abort if RUBY_VERSION < s[%r"warn .*Ruby ([\d.]+)(?:\.0)?",1])