Release a software product
This script performs a full production release
of Beyond FTP and APTNet. It distributes the production build files and initiates the remote
script (included here) that creates the complete download files and places them
on the APT web server.
The basic flow is this:
1. Move the test build files to the release site.
2. Queue the remote script that performs the
production build.
3. Create the test download files.
4. Move the test download files into production.
5. Move the production downloads onto the web site.
Each step is checked for failure using a
conditional.
:Comment:#
Ignore anything after a "#" character on a line
:RepeatTime:Daily
:MaxPerServer:2
:Archive:None
:Speed:+5 |
#
Repeat every 24 hours
# Run 2 transfers at a time to each site
# Do not archive either the source or target
# Operate each transfer with a window of 6
# messages |
# Clean up the distribution directories
:DeleteFiles:
o:\release\test\setupdos\*.001
:DeleteFiles:
o:\release\test\setup95\*.001
:DeleteFiles:
o:\release\test\setupnt\*.001
:DeleteFiles:
o:\release\test\setup31\*.001
:DeleteFiles:
o:\release\test\bftpall\setup.exe
:DeleteFiles:
o:\release\test\aptwin\setup.exe
:IF:
CleanTest
CompletedOK
#Clean
up unneeded setup programs
# Move the distribution files to the main
release site.
:From:
h:\vr7\its\*.inf
:To
: {Bingham}h:\vr7\its\*.inf
:From:
h:\vr7\winlan\*.inf
:To
: {Bingham}h:\vr7\winlan\*.inf
:From:O:\RELEASE\TEST\APTWIN\*.*
:To
:{Bingham}O:\RELEASE\TEST\APTWIN\*.*
:From:O:\RELEASE\TEST\BFTPALL\*.*
:To
:{Bingham}O:\RELEASE\TEST\BFTPALL\*.*
:From:O:\RELEASE\TEST\SETUP31\*.*
:To
:{Bingham}O:\RELEASE\TEST\SETUP31\*.*
:From:O:\RELEASE\TEST\SETUP95\*.*
:To
:{Bingham}O:\RELEASE\TEST\SETUP95\*.*
:From:O:\RELEASE\TEST\SETUPNT\*.*
:To
:{Bingham}O:\RELEASE\TEST\SETUPNT\*.*
:From:O:\RELEASE\TEST\SETUPDOS\*.*
:To
:{Bingham}O:\RELEASE\TEST\SETUPDOS\*.*
:IF:
TestXfers
CompletedOK
#Test
xfers complete
# Start the production build script.
:QueueDistribution:{Bingham}c:\bftp\ProdBld.Dcf
:IF:
ProdBuild
CompletedOK
#Start
production build
# The production build script begins.
This script actually
# executes at the server {Bingham}
# Set up the results transfer so we see how the
script progressed
:ReturnResultsTo:
{Sterling}c:\bftp\ProdBld
# Create the control files for the various
types of downloads
:Run:
o:\release\MakeTest.Bat,XIT,O:\Release,2
# Produce each download file. The
subscript that performs
# each build is called OneBld.Isf, and consists of the following
# statements:
#
# :Run: h:\vr7\vrelease.exe,"-L,h:\vr7\bftp\download.mdb
# ,release,%0,quietly"
# :Run: h:\vr7\vrelease.exe,"-M,h:\vr7\bftp\download.mdb
# ,release,%0,quietly"
#
# The INCLUDE statement allows us to pass in the parameter
# (%0)
specifying which distribution file to build.
:Include:onebld,bftpsprod95
:Include:onebld,bftpprodnt
:Include:onebld,bftpdemo95
:Include:onebld,bftpdemont
:Include:onebld,bftpprod31
:Include:onebld,aptdemont
:Include:onebld,aptprodnt
:Include:onebld,aptdemo95
:Include:onebld,aptprod95
:Include:onebld,aptprod31
:IF:
BldDown
CompletedOK
#Build
download files
# Now move all the test build components into
production. This
# is done with local copies. It could be performed with a .BAT
# file, but
we use a script to get a complete record.
:From:
o:\release\test\setup95\setup.exe
:To
: o:\release\prod\setup95\setup.exe
:From:
o:\release\test\setupnt\setup.exe
:To
: o:\release\prod\setupnt\setup.exe
:From:
o:\release\test\setup31\setup.exe
:To
: o:\release\prod\setup31\setup.exe
:From:
o:\release\test\setup95\setup95.exe
:To
: o:\release\prod\setup95\setup95.exe
:From:
o:\release\test\setupnt\setupnt.exe
:To
: o:\release\prod\setupnt\setupnt.exe
:From:
o:\release\test\setup31\setup31.exe
:To
: o:\release\prod\setup31\setup31.exe
:DeleteFiles:o:\release\prod\bftpall\*.*
:From:
o:\release\test\bftpall\*.*
:To
: o:\release\prod\bftpall\*.*
:DeleteFiles:o:\release\prod\aptwin\*.*
:From:
o:\release\test\aptwin\*.*
:To
: o:\release\prod\aptwin\*.*
:IF:ProdMove
CompletedOK
#Production build
files are updated
# Move the download builds into production
:From:
h:\release\test\download\31prod\*.*
:To
: o:\release\prod\download\31prod\*.*
:From:
h:\release\test\download\95prod\*.*
:To
: o:\release\prod\download\95prod\*.*
:From:
h:\release\test\download\Ntprod\*.*
:To
: o:\release\prod\download\Ntprod\*.*
:From:
h:\release\test\download\95Demo\*.*
:To
: o:\release\prod\download\95Demo\*.*
:From:
h:\release\test\download\Ntprod\*.*
:To
: o:\release\prod\download\Ntprod\*.*
:IF:Downloads
CompletedOK
# Production
downloads are updated
# Move the download builds to the web site.
This is done with
# a .BAT file to accommodate file in use checking and looping.
:Run:
o:\release\movenew.bat > o:\release\move.log,,o:\release,20
:From:
o:\release\move.log
:To
: {Sterling}c:\bftp\move.log
:IF:Webupdate
CompletedOK
#Production
download files are on the web
:End_If:
:End_If:
:End_If:
:End_If:
:End_If:
:End_If:
:End_If: |