Changeset 5

Show
Ignore:
Timestamp:
12/19/07 20:52:02 (16 years ago)
Author:
broder
Message:

Checksumming function to get the md5, sha1, and rmd160 checksums that usually come with Portfiles.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/locker-bin/macathenaDist.py

    r4 r5  
    11#!/usr/bin/env python 
    22 
    3 def packageCvs(module, cvsModule, cvsroot): 
     3def packageCvs(module, cvsModule, cvsroot='/afs/dev.mit.edu/source/repository', getAutoconf='packs/build/autoconf'): 
    44        import os 
    55        import time 
     
    1313        os.system('cvs -R export -r HEAD %s >/dev/null 2>/dev/null' % cvsModule) 
    1414         
     15        if getAutoconf: 
     16                os.system('cvs -R export -r HEAD -d %s %s >/dev/null 2>/dev/null' % (cvsModule, getAutoconf)) 
     17         
    1518        stamp = 0 
    1619        for root, dirs, files in os.walk(cvsModule): 
     
    1922         
    2023        tarball_time = time.strftime('%Y%m%d', time.localtime(stamp)) 
    21         tarball = '%s_%s' % (module, tarball_time) 
     24        tarball = '%s-%s' % (module, tarball_time) 
    2225        os.rename(cvsModule, tarball) 
    2326         
     
    3134        print 'Created /mit/macathena/dist/%s.tar.gz' % tarball 
    3235 
    33 modules = {'moira': ['moira', '/afs/athena.mit.edu/astaff/project/moiradev/repository'], 
    34         'libathdir': ['athena/lib/athdir', '/afs/dev.mit.edu/source/repository'], 
    35         'athdir': ['athena/bin/athdir', '/afs/dev.mit.edu/source/repository']} 
     36modules = {'moira': ['moira', '/afs/athena.mit.edu/astaff/project/moiradev/repository', False], 
     37        'libathdir': ['athena/lib/athdir'], 
     38        'athdir': ['athena/bin/athdir']} 
    3639 
    3740if __name__ == '__main__':