24 my $nLOCK_FILE_MAX_ATTEMPTS = 5; |
24 my $nLOCK_FILE_MAX_ATTEMPTS = 5; |
25 my $sNUMBERS_FILE="\\\\v800020\\Publish\\SF_builds\\numbers.txt"; |
25 my $sNUMBERS_FILE="\\\\v800020\\Publish\\SF_builds\\numbers.txt"; |
26 my $sLETTERS_FILE="letters.txt"; |
26 my $sLETTERS_FILE="letters.txt"; |
27 my $nMAX_LETTER_AGE_SECONDS = 86400; # max number of seconds after which the letter is forcibly released |
27 my $nMAX_LETTER_AGE_SECONDS = 86400; # max number of seconds after which the letter is forcibly released |
28 |
28 |
29 my $sFbfProjectRepo = "\\\\v800020\\mercurial_development\\oss\\FCL\\interim\\fbf\\projects\\packages"; |
29 my $sFbfProjectRepo = "http://developer.symbian.org/oss/FCL/interim/fbf/projects/packages"; |
30 my $sFbfProjectDir = ''; |
30 my $sFbfProjectDir = ''; |
31 my $sSubProject = ''; |
31 my $sSubProject = ''; |
32 my $sSubprojVariant = ''; |
32 my $sSubprojVariant = ''; |
33 my $sSBSConfig = ''; |
33 my $sSBSConfig = ''; |
34 #my $sSourcesFile = ''; |
34 #my $sSourcesFile = ''; |
35 #my $sModelFile = ''; |
35 #my $sModelFile = ''; |
36 my $sFbfConfigRepo="\\\\v800020\\mercurial_development\\oss\\FCL\\interim\\fbf\\configs\\default"; |
36 my $sFbfConfigRepo="http://developer.symbian.org/oss/FCL/interim/fbf/configs/default"; |
37 my $sFbfConfigDir = ''; |
37 my $sFbfConfigDir = ''; |
38 my $nCmdLineNumber; |
38 my $nCmdLineNumber; |
39 my $sDiamondsTag = ''; |
39 my $sDiamondsTag = ''; |
40 my $bHudson = 0; |
40 my $bHudson = 0; |
41 my $bPublish = 1; |
41 my $bPublish = 1; |
67 print " build_package.pl --projectrepo=REPO [OPTIONS]\n"; |
67 print " build_package.pl --projectrepo=REPO [OPTIONS]\n"; |
68 print "where OPTIONS are:\n"; |
68 print "where OPTIONS are:\n"; |
69 print "\t--subproj=RELPATH Select subproject located at RELPATH (relative to the root of the project repository)\n"; |
69 print "\t--subproj=RELPATH Select subproject located at RELPATH (relative to the root of the project repository)\n"; |
70 print "\t--variant=VARIANT If specified use sources_VARIANT.csv instead of sources.csv and add \"VARIANT\" as tag for this build\n"; |
70 print "\t--variant=VARIANT If specified use sources_VARIANT.csv instead of sources.csv and add \"VARIANT\" as tag for this build\n"; |
71 print "\t--sbsconfig=CONFIG Pass on CONFIG as configuration to SBS (can also be a comma separated list, e.g. 'armv5,winscw')\n"; |
71 print "\t--sbsconfig=CONFIG Pass on CONFIG as configuration to SBS (can also be a comma separated list, e.g. 'armv5,winscw')\n"; |
72 print "\t--projectrepo=REPO[#REV] Use repository REPO at revision REV for the project (instead of \\\\v800020\\mercurial_internal\\fbf\\projects\\packages)\n"; |
72 print "\t--projectrepo=REPO[#REV] Use repository REPO at revision REV for the project (instead of http://developer.symbian.org/oss/FCL/interim/fbf/projects/packages)\n"; |
73 print "\t--projectdir=DIR Use DIR location for the project (exclusive with --projectrepo).\n"; |
73 print "\t--projectdir=DIR Use DIR location for the project (exclusive with --projectrepo).\n"; |
74 #print "\t--sources=FILE ...\n"; |
74 #print "\t--sources=FILE ...\n"; |
75 #print "\t--model=FILE ...\n"; |
75 #print "\t--model=FILE ...\n"; |
76 print "\t--configrepo=REPO[#REV] Use repository REPO at revision REV for the config (instead of \\\\v800020\\mercurial_internal\\fbf\\config\\default)\n"; |
76 print "\t--configrepo=REPO[#REV] Use repository REPO at revision REV for the config (instead of http://developer.symbian.org/oss/FCL/interim/fbf/configs/default)\n"; |
77 print "\t--configdir=DIR Use DIR location for the config (exclusive with --configrepo).\n"; |
77 print "\t--configdir=DIR Use DIR location for the config (exclusive with --configrepo).\n"; |
78 print "\t--number=N Force build number to N\n"; |
78 print "\t--number=N Force build number to N\n"; |
79 print "\t--tag=TAG Apply Diamonds tag TAG to this build\n"; |
79 print "\t--tag=TAG Apply Diamonds tag TAG to this build\n"; |
80 print "\t--hudson Checks that there is at least NUMBER_OF_PROCESSORS X 10 GB available on the working drive\n"; |
80 print "\t--hudson Checks that there is at least NUMBER_OF_PROCESSORS X 10 GB available on the working drive\n"; |
81 print "\t--nopublish Use \\numbers_test.txt for numbers and disable publishing\n"; |
81 print "\t--nopublish Use \\numbers_test.txt for numbers and disable publishing\n"; |