nomsu/lib/compatibility/2.5.5.5.nom
Bruce Hill a1849da175 Autoformat (mostly just to do with the new
blank-line-after-end-of-multi-indent-block rule
2019-03-27 15:22:46 -07:00

17 lines
549 B
Plaintext

#!/usr/bin/env nomsu -V7.0.0
###
This file defines upgrades from Nomsu <2.5.5.5 to Nomsu 2.5.5.5
use "compatibility/compatibility"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
upgrade action [hash $, sha1 $] to "2.5.5.5" as
=lua ("
\(base64 decode (hash $)):gsub('.', function(c) return ('%x02'):format(c) end)
")
upgrade action [file with hash $] to "2.5.5.5" as
file with hash
base64
=lua "\$:gsub('..', function(xx) return string.char(tonumber(xx, 16)) end)"