1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/scripts/refactor-gamedb.pl
2021-04-25 09:21:28 +03:00

21 lines
447 B
Perl

#! /usr/bin/env perl
#
# Short description for refactor-gamedb.pl
#
# Version 0.0.1
# Copyright (C) 2021 Shlomi Fish < https://www.shlomifish.org/ >
#
# Licensed under the terms of the MIT license.
use strict;
use warnings;
use 5.014;
use autodie;
use Path::Tiny qw/ path tempdir tempfile cwd /;
s@
\(\s*(n_\s*\("[^"]+"\))\s*,\s*
lambda\s*gi,\s*gt=(GT[A-Za-z_0-9]+)\s*:
\s*gi.si.game_type\s*==\s*gt\)
@_gen_select(title=$1, game_type=$2)@gmsx;