1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-30 19:52:17 +01:00

Appended OS names to package archives (bug 4396, r=dvander).

This commit is contained in:
Scott Ehlert 2010-05-13 19:45:20 -05:00
parent 0a0f4845e8
commit 1130977c9d

View File

@ -34,6 +34,20 @@ my ($version);
$version = Build::ProductVersion(Build::PathFormat('../product.version'));
$version .= '-hg' . Build::HgRevNum('..');
# Append OS to package version
if ($^O eq "darwin")
{
$version .= '-mac';
}
elsif ($^O =~ /MSWin/)
{
$version .= '-windows';
}
else
{
$version .= '-' . $^O;
}
my ($filename);
$filename = 'mmsource-' . $version;
if ($^O eq "linux")