nomsu/compatibility/2.5.5.5.nom
2018-09-14 19:17:16 -07:00

15 lines
484 B
Plaintext

#!/usr/bin/env nomsu -V4.8.8.6
#
This file defines upgrades from Nomsu <2.5.5.5 to Nomsu 2.5.5.5
use "compatibility/compatibility.nom"
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)"