nomsu/compatibility/2.5.5.5.nom

15 lines
545 B
Plaintext
Raw Normal View History

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