diff options
Diffstat (limited to 'dist/createDistZip.pl')
-rw-r--r-- | dist/createDistZip.pl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dist/createDistZip.pl b/dist/createDistZip.pl index f4a48e1..e1e8343 100644 --- a/dist/createDistZip.pl +++ b/dist/createDistZip.pl @@ -2,5 +2,10 @@ $jomVersion = `../bin/jom.exe /VERSION`; $jomVersion = substr($jomVersion, 12); $jomVersion = substr($jomVersion, 0, -1); -$jomVersion =~ s/\.//g; -system("copy /Y jom.zip jom" . $jomVersion . ".zip"); +$jomVersion =~ /(\d+)\.(\d+)\.(\d+)/; +$jomVersion = ${1} . "_" . ${2} . "_"; +if (length(${3}) == 1) { + $jomVersion = $jomVersion . "0"; +} +$jomVersion = $jomVersion . ${3}; +system("copy /Y jom.zip jom_" . $jomVersion . ".zip"); |