[Bio] / ReleaseTools / newrel Repository:
ViewVC logotype

Diff of /ReleaseTools/newrel

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2, Mon Dec 22 20:56:36 2003 UTC revision 1.3, Tue Dec 23 13:43:25 2003 UTC
# Line 31  Line 31 
31    
32  #-----------------------------------------------------------------------  #-----------------------------------------------------------------------
33  #++ vars  #++ vars
34  packageVersionsFileName=""  
35    releaseArea=""                     # $RTROOT/dist/releases, if RTROOT set
36    packageVersionsFileName=""         # Command arg from user.
37    newReleaseName=""                  # Command arg passed by user.
38    newReleasePathAndName=""           # $releaseArea/$newReleaseName
39    invokedFromDir=`pwd`
40    
41    
42  #-----------------------------------------------------------------------  #-----------------------------------------------------------------------
43  #++ process options  #++ process options
# Line 97  Line 103 
103         exit 2         exit 2
104     fi     fi
105    
106     newRelease=$releaseArea/$newReleaseName     newReleasePathAndName=$releaseArea/$newReleaseName
107    
108     if [ -r $newRelease ]; then     if [ -r $newReleasePathAndName ]; then
109         echo "Release $newReleaseName already exists in release area, $releaseArea"         echo "Release $newReleaseName already exists in release area, $releaseArea"
110         exit 2         exit 2
111     fi     fi
# Line 140  Line 146 
146     # goes in with the right name, "PackageVersions"     # goes in with the right name, "PackageVersions"
147    
148     cd $invokedFromDir     cd $invokedFromDir
149     cp -p $packageVersionsFileName $releaseArea/$newReleaseName/PackageVersions     cp -p $packageVersionsFileName $newReleasePathAndName/PackageVersions
150    
151     installedPackageVersionsFile=$releaseArea/$newReleaseName/PackageVersions     installedPackageVersionsFile=$newReleasePathAndName/PackageVersions
152    
153     cd $releaseArea/$newReleaseName     cd $newReleasePathAndName
154    
155  #-----------------------------------------------------------------------  #-----------------------------------------------------------------------
156  #++ Load it with the packages.  #++ Load it with the packages.
157    
158     # this uses the PackageVersions we just dumped in     # this uses the PackageVersions we just dumped in
159    
160     cd $releaseArea/$newReleaseName     cd $newReleasePathAndName
161     for pkg in `awk '{print $1 }' $installedPackageVersionsFile` ; do     for pkg in `awk '{print $1 }' $installedPackageVersionsFile` ; do
162         echo getting $pkg         echo getting $pkg
163         packageVer=`grep $pkg $installedPackageVersionsFile | awk '{print $2}'`         packageVer=`grep $pkg $installedPackageVersionsFile | awk '{print $2}'`
# Line 160  Line 166 
166     done     done
167    
168  #-----------------------------------------------------------------------  #-----------------------------------------------------------------------
169    #++ Now that we have the packages, make the directory structure for
170    #  the release. We do that by deferring to the makefile in ReleaseTools.
171    #  Since the version of ReleaseTools can change release to release, we
172    #  use the info in the PackageVersions file we were called with.
173    
174       cd $newReleasePathAndName
175       if [ -r ReleaseTools ]; then
176           cp -p ReleaseTools/Makefile.top Makefile
177           make installdirs
178       else
179           echo "WARNING: No ReleaseTools in PackageVersions.  You're going to regret it...continuing anyway."
180       fi
181    
182    
183    #-----------------------------------------------------------------------
184  #++ Zorch all the CVS directories.  #++ Zorch all the CVS directories.
185    
186     cd $releaseArea/$newReleaseName     cd $newReleasePathAndName
187    
188     # brain fade...can't get -exec to work for me and am in rush:     # brain fade...can't get -exec to work for me and am in rush:
189    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3