Back to Trigger Home.
b0dap30: >~wittich/bin/dump_l2tagsets.pl Enter data base password for wittich@cdfonprd: Connected to wittich@cdfonprd. Tags Alphatag L2runTag l2codeTag N Table Ver User Retired ------------------------------------------------------------ 1 v2_0_repoMar26 v2_0_repoMar26 v2_0_repoMar26 1 L2_TORTURE 4 WITTICH NULL 2 v2_0_repoMar26 v2_0_repoMar26 v2_0_repoMar26 1 PHYSICS_1_01 4 WITTICH NULL 3 v2_0_repoMar26 v2_0_repoMar26 v2_0_repoMar26 1 COSMICS_NOTRAC 3 WITTICH NULL 4 v2_0_repoMar26 v2_0_repoMar26 v2_0_repoMar26 1 MINIMUM_BIAS_1 6 WITTICH NULL 5 v2_0_repoMar26 v2_0_repoMar26 v2_0_repoMar26 1 COSMICS 6 WITTICH NULL 6 v2_1_recesFix v2_1_recesFix v2_0_repoMar26 1 PHYSICS_1_01 4 WITTICH NULL 7 v2_0_repoMar26 v2_0_repoMar26 v2_0_repoMar26 1 SUMET5 1 WITTICH NULL 8 v2_0_repoMar26 v2_0_repoMar26 v2_0_repoMar26 1 PHYSICS_TEST_1 14 LUCIANO NULL 9 v2_0_repoMar26 v2_0_repoMar26 v2_0_repoMar26 1 XFTTRACK_TEST_ 2 WITTICH NULL 10 v2_1_recesFix v2_1_recesFix v2_0_repoMar26 1 XFTTRACK_TEST_ 4 WITTICH NULL b0dap30: >~wittich/bin/dump_guidefs.pl Enter data base password for wittich@cdfonprd: Connected to wittich@cdfonprd. Alphatag L2runTag l2codeTag N ------------------------------------------------------------ v2_0 v2_0 v2_0 1 CDFTRIG_PRD v2_0_repoMar26 v2_0_repoMar26 v2_0_repoMar26 1 WITTICH v2_1_recesFix v2_1_recesFix v2_0_repoMar26 1 WITTICH
% mkdir testrel; cd testrel; mkdir lib % cvs checkout -r v2_0_repoMar26 l2code % cvs checkout -r v2_1_recesFix alpha % cvs checkout -r v2_1_recesFix L2run
% emacs L2run/src/run.cc ....- or -
cvs checkout -r1.xx L2run/src/run.cc
% cvs update -A L2run/src/run.ccfor all files that you've changed. This will update the files to the head. You can see if the `sticky tags' are still there by doing
% cvs status L2run/src/run.cc
If your files are not at the head, you should create a branch instead. This is done as follows.
% cvs checkout -r v2_1 L2run
% cvs rtag -b -r v2_1 v2_1a_branch L2runI think we should try to make the branch name (here, v2_1a_branch) be such that it is clearly a branch, e.g., if the base is v2_1, it could be something like v2_1a.
% cvs update -r v2_1a_branch L2runTo convince yourself that you ar now on that branch, you can use the command `cvs status: It should list the branch name in the `sticky tag' field.
% cvs update -j v7_0a_mergingBranchname File(s)Alternatively, you can just put in your fixes into the head by hand.
% gmake -C alpha; gmake -C l2code; gmake -C L2run
% cvs commit -m "modifications to make this file more excellent" L2run/src/run.cc % cvs tag v2_1_myExcellentFix L2run
% setup TriggerDBGui
% triggerGui
Select edit/view trigger table, and then choose the trigger table
you want, and choose "Recompile L2 code". Choose the tagsets you
want by selecting the `edit' button for L2 tagsets..
% setup TriggerDB
% ~wittich/bin/build.pl --help
shows you all the options. You need
--l2codetag v2_0_repoMar26
--alphatag v2_0_repoMar26
--l2runtag v2_0_myExcellentFix
--triggertable PHYSICS_1_01
--version 4
--dbinfo wittich/mypasswd@cdfonprd
can also do wittich@cdfonprd if you don't want to put your
password on the command line, in which case you will get
prompted for the information.
--num_alphas 1 <- currently unused --verbose --debugThe last two send more and more output to standard output. Good for debugging. If your table doesn't build, run with these options before you send me a bug report; otherwise, I'll just have to do it.
The log file will have a name such as PHYSICS_1_01_v-4_666_0.log during compilation, and L2_123_PHYSICS_1_01_v-4.log on success. The (somewhat convoluted) meaning of this is table name and version number, userid (to prevent people from clashing in their compiles), and a monotonically increasing number for each time this particular job is attempted. On success, the username part is removed and the file is prepended with L2_##, where the hashes are the L2 tagset for this file.
% set path=( /usr/bin $path)
`which perl' should
now return /usr/bin/perl
% export PATH=/usr/bin:$PATH