RELEASE BUILD PROCEDURE FOR P4DTI Gareth Rees, Ravenbrook Limited, 2000-10-17 1. INTRODUCTION This is the procedure for building a release of the Perforce Defect Tracking Integration from the version sources. The readership of this document is anyone developing the integration. This document is not confidential. 2. PROCEDURE Note that all pathnames here are relative to "/project/p4dti". If you're using cygwin to run the p4 commands, remember to run "alias p4='p4 -d `cygpath -w $PWD`'", or put this in your .bashrc. 1. Choose a release name of the form "VERSION.N" (for example, 0.3.0). VERSION is the number of the version you're releasing. N is the first unused release number (starting at zero). Look in the index of releases (release/index.html) for existing release numbers for your version. 2. Ensure that the "version/VERSION/readme.txt" file has an up-to-date description of the release you intend to build, contains the correct release, the list of known defects, and a summary of changes and new features. 3. Make a label for the release, with name "P4DTI-release-RELEASE": p4 label P4DTI-release-RELEASE The label description should be Sources for release RELEASE of P4DTI. The label view should be //info.ravenbrook.com/project/p4dti/version/VERSION/... 4. Sync the version sources to the consistent set from which you intend to build the release, then store this set in the label. Usually you will be building the release from the head revision of the version sources: p4 sync version/VERSION/... p4 labelsync -l P4DTI-release-RELEASE 5. Sync the version sources to a clean area of the disk, to be sure that there are no extraneous files around: p4 sync version/VERSION/...#none rm -rf version/VERSION p4 sync -f version/VERSION/...@P4DTI-release-RELEASE 6. To build teamtrack.dll: Run Microsoft Visual C++ 6.0. Select File -> Open Workspace. Select version/VERSION/code/p4dti.dsw. Check that the "teamtrack" and "tsapi" projects are using the "Win32 Debug" configurations (this should be the case). Make teamtrack the active project. Select Build -> Build teamtrack.dll. 7. Branch the "readme.txt" file from the version sources to the "release/RELEASE" directory. DO NOT SUBMIT YET. p4 integrate version/VERSION/readme.txt release/RELEASE/readme.txt 8. Launch WinZip and create a new archive called "p4dti-teamtrack-RELEASE.zip" in the directory "release/RELEASE". Add the files listed below. Be sure _not_ to store full paths in WinZip (an option in the "Add" dialog). version/VERSION/code/build/debug/*.{bsc,pdb,map,idb} version/VERSION/code/replicator/*.py version/VERSION/code/replicator/teamtrack.dll import/2000-10-17/teamtrack-sample-db/tTrackSample.mdb Add the manuals with partial path names, by selecting version/VERSION/manual/{ig,mg,sag,ug} then turn on the "Include subfolders" option, then select "Add with wildcards". 9. Make a self-extracting archive called "p4dti-teamtrack-RELEASE.exe" from "p4dti-teamtrack-0.3.0.zip" (in the same directory), by selcting Actions -> Make .EXE File. Specify the default "unzip to" folder as "C:\Program Files\P4DTI". 10. Add the archive and self-extracting archive to Perforce. DO NOT SUBMIT YET. p4 add release/RELEASE/p4dti-teamtrack-0.3.0.exe p4 add release/RELEASE/p4dti-teamtrack-0.3.0.zip 11. Edit the index of releases (release/index.html) and add the release to the table, in a manner consistent with previous releases. 12. Edit the index of versions (version/index.html) and add the release to the list of releases for VERSION, in a manner consistent with previous releases. 13. Submit the release and other document changes with the comment "Made release RELEASE." 14. Inform the project manager by e-mail. A. References [RB 2000-10-13] "P4DTI release build and installation" (e-mail message); Richard Brooksby; Ravenbrook Limited; 2000-10-13; . [GDR 2000-10-16] "Re:P4DTI release build and installation" (e-mail message); Gareth Rees; Ravenbrook Limited; 2000-10-16; . [GDR 2000-10-17] "Build report for release 0.3.1" (e-mail message); Gareth Rees; Ravenbrook Limited; 2000-10-17. B. Document history 2000-10-17 RB Created based on e-mail procedure [RB 2000-10-13]. 2000-10-17 GDR Added corrections from [GDR 2000-10-16] and [GDR 2000-10-17]. 2000-10-19 RB Added steps for handing the readme.txt. Changed bullets to numbers in the procedure. Corrected the order of the "label" and "sync" steps.