From: Mischa POSLAWSKY Date: Sat, 13 Jun 2015 02:21:13 +0000 (+0200) Subject: sc: rename data files to append game release abbreviation X-Git-Tag: v1.8~167 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/1de61e5745ecf3dd1a41e1e932bae2f7568353a4?ds=sidebyside sc: rename data files to append game release abbreviation Common prefix and allow distinction within generation version number, such as wol (first sc2 variant) and the upcoming lotv (final version) in addition to hots (current expansion). --- diff --git a/sc-units.inc.pl b/sc-units-bw.inc.pl similarity index 100% rename from sc-units.inc.pl rename to sc-units-bw.inc.pl diff --git a/sc2-units.inc.pl b/sc-units-hots.inc.pl similarity index 100% rename from sc2-units.inc.pl rename to sc-units-hots.inc.pl diff --git a/sc.plp b/sc.plp index 7174228..55dbd09 100644 --- a/sc.plp +++ b/sc.plp @@ -1,9 +1,10 @@ <(common.inc.plp)><: -my $datafile = 'sc-units.inc.pl'; +my $scver = 'bw'; if ($ENV{PATH_INFO} and $ENV{PATH_INFO} eq '/2') { - $datafile = 'sc2-units.inc.pl'; + my $scver = 'hots'; } +my $datafile = "sc-units-$scver.inc.pl"; Html({ title => 'starcraft unit cheat sheet',