Make win32tzlist.pl checkable again
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 22 Dec 2023 13:56:27 +0000 (13:56 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 22 Dec 2023 13:56:27 +0000 (13:56 +0000)
commit8ddf9c1dc020d569d3a0aa22e3269a64e8a4ef23
tree40943b979650973bc97168f1b170b944b38be17a
parent8793c60051541c8df8dbe133cb9cf8138efe3b3f
Make win32tzlist.pl checkable again

Commit 1301c80b21 removed some infrastructure needed to check
windows-oriented perl scripts. It also removed most such scripts, but
this one was left over. We repair the damage by making Win32::Registry a
conditional requirement that is only loaded on Windows. With this change
`perl -cw win32tzlist.pl` once again passes on non-Windows machines.

Discussion: https://postgr.es/m/a2bd77fd-61b8-4c2b-b12e-3e22ae260f82@eisentraut.org
src/tools/win32tzlist.pl