- Timestamp:
- 12/19/07 20:52:02 (17 years ago)
- Files:
-
- trunk/locker-bin/checksums.py (added)
- trunk/locker-bin/macathenaDist.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/locker-bin/macathenaDist.py
r4 r5 1 1 #!/usr/bin/env python 2 2 3 def packageCvs(module, cvsModule, cvsroot ):3 def packageCvs(module, cvsModule, cvsroot='/afs/dev.mit.edu/source/repository', getAutoconf='packs/build/autoconf'): 4 4 import os 5 5 import time … … 13 13 os.system('cvs -R export -r HEAD %s >/dev/null 2>/dev/null' % cvsModule) 14 14 15 if getAutoconf: 16 os.system('cvs -R export -r HEAD -d %s %s >/dev/null 2>/dev/null' % (cvsModule, getAutoconf)) 17 15 18 stamp = 0 16 19 for root, dirs, files in os.walk(cvsModule): … … 19 22 20 23 tarball_time = time.strftime('%Y%m%d', time.localtime(stamp)) 21 tarball = '%s _%s' % (module, tarball_time)24 tarball = '%s-%s' % (module, tarball_time) 22 25 os.rename(cvsModule, tarball) 23 26 … … 31 34 print 'Created /mit/macathena/dist/%s.tar.gz' % tarball 32 35 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']}36 modules = {'moira': ['moira', '/afs/athena.mit.edu/astaff/project/moiradev/repository', False], 37 'libathdir': ['athena/lib/athdir'], 38 'athdir': ['athena/bin/athdir']} 36 39 37 40 if __name__ == '__main__':