From 1de61e5745ecf3dd1a41e1e932bae2f7568353a4 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 13 Jun 2015 04:21:13 +0200 Subject: [PATCH] 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). --- sc-units.inc.pl => sc-units-bw.inc.pl | 0 sc2-units.inc.pl => sc-units-hots.inc.pl | 0 sc.plp | 5 +++-- 3 files changed, 3 insertions(+), 2 deletions(-) rename sc-units.inc.pl => sc-units-bw.inc.pl (100%) rename sc2-units.inc.pl => sc-units-hots.inc.pl (100%) 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', -- 2.30.0