copyparty/scripts/lics/rot.py
ed 33c4ccffab vendor foss licenses
license downloader (for generating COPYING.txt) broke after
opensource.org changed their html, so just vendor all of it
2024-11-26 00:39:38 +00:00

13 lines
308 B
Python
Executable file

#!/usr/bin/env python3
import os, codecs
for fn in os.listdir("."):
if not fn.endswith(".txt"):
continue
with open(fn, "rb") as f:
s = f.read().decode("utf-8")
b = codecs.encode(s, "rot_13").encode("utf-8")
with open(fn.replace("txt", "r13"), "wb") as f:
f.write(b)