diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2012-03-12 18:20:17 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2012-03-12 18:22:15 +0100 |
commit | c91a204b05f97eef3c73aaaba3036e20f79fd487 (patch) | |
tree | 1dadf9ae5b3604c9ce6e588a65527d13af3ffa96 | |
parent | 3c2b48c99f4d6eddb389b825bd6a40a00e7a26e9 (diff) |
separate version number parts in distribution scriptv1.0.11
Change-Id: I1e9b8492437701086f61b0e06984aa6464464ca3
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
-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"); |