Changeset 73
- Timestamp:
- 01/27/08 02:17:29 (17 years ago)
- Files:
-
- trunk/locker-bin/macathenaDist.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/locker-bin/macathenaDist.py
r65 r73 33 33 info.gname = "wheel" 34 34 35 if info.isdir(): 36 info.mtime = mtime 35 info.mtime = mtime 37 36 38 37 return info 39 38 40 39 def packageSvn(module, svnModule, extras=[], svnroot='file:///afs/dev.mit.edu/source/svn-repos', revision='HEAD'): 40 global mtime 41 41 42 os.system('attach macathena >/dev/null 2>/dev/null') 42 43 os.chdir('/mit/macathena/build') … … 71 72 72 73 def packageCvs(module, cvsModule, extras=['packs/build/autoconf'], cvsroot='/afs/dev.mit.edu/source/repository', date='tomorrow'): 74 global mtime 75 73 76 os.system('attach macathena >/dev/null 2>/dev/null') 74 77 os.chdir('/mit/macathena/build') … … 86 89 stamp = max(stamp, max(os.stat('%s/%s' % (root, file))[8] for file in files)) 87 90 91 mtime = int(time.strftime('%s', time.localtime(stamp))) 88 92 tarball_time = time.strftime('%Y%m%d', time.localtime(stamp)) 89 93 tarball = '%s-%s' % (module, tarball_time) … … 101 105 cvsModules = {'moira': ['moira', False, '/afs/athena.mit.edu/astaff/project/moiradev/repository']} 102 106 103 svnModules = {'libathdir': ['trunk/athena/lib/athdir'], 104 'athdir': ['trunk/athena/bin/athdir'], 105 'machtype': ['trunk/athena/bin/machtype'], 107 svnModules = {'athdir': ['trunk/athena/bin/athdir'], 106 108 'attachandrun': ['trunk/athena/bin/attachandrun'], 107 109 'athrun': ['trunk/athena/bin/athrun'], 108 110 'athinfo': ['trunk/athena/bin/athinfo'], 111 'discuss': ['trunk/athena/bin/discuss', ['attic/packs/build/aclocal.m4']], 109 112 'getcluster': ['trunk/athena/bin/getcluster', ['attic/packs/build/aclocal.m4']], 113 'libathdir': ['trunk/athena/lib/athdir'], 110 114 'libxj': ['trunk/athena/lib/Xj'], 115 'machtype': ['trunk/athena/bin/machtype'], 111 116 'xcluster': ['trunk/athena/bin/xcluster', ['attic/packs/build/aclocal.m4']], 112 'discuss': ['trunk/athena/bin/discuss'],113 117 # Our packages: 114 118 'add': ['trunk/source/add', False, 'https://macathena.mit.edu/svn'], … … 128 132 for arg in build: 129 133 if svnModules.has_key(arg): 134 print "Building %s" % arg 130 135 apply(packageSvn, [arg] + svnModules[arg]) 131 136 elif cvsModules.has_key(arg): 137 print "Building %s" % arg 132 138 apply(packageCvs, [arg] + cvsModules[arg]) 133 139 else: