source: trunk/debathena/scripts/build-server/gen-distributions @ 25415

Revision 25415, 1.5 KB checked in by geofft, 13 years ago (diff)
Check in gen-distributions script (from /mit/debathena/apt/conf)
  • Property svn:executable set to *
Line 
1#!/usr/bin/python
2
3#key = '997D6B23'
4key = '0D8A9E8F'
5
6release_info = {'lenny': ('Debian', '5.0'),
7                'squeeze': ('Debian', '6.0'),
8                'hardy': ('Ubuntu', '8.04'),
9                'jaunty': ('Ubuntu', '9.04'),
10                'karmic': ('Ubuntu', '9.10'),
11                'lucid': ('Ubuntu', '10.04'),
12                'maverick': ('Ubuntu', '10.10'),
13                'natty': ('Ubuntu', '11.04'),
14                'oneiric': ('Ubuntu', '11.10')}
15
16codenames = ['lenny', 'squeeze',
17             'hardy', 'jaunty', 'karmic', 'lucid', 'maverick', 'natty', 'oneiric']
18
19releases = ['', '-proposed', '-development']
20
21architectures = ['amd64', 'i386']
22
23components = ['debathena',
24              'debathena-config',
25              'debathena-manual-config',
26              'debathena-system',
27              'openafs']
28
29for codename in codenames:
30    distro, version = release_info[codename]
31    for release in releases:
32        print 'Origin: Debathena'
33        print 'Label: Debathena'
34        print 'Suite: %s%s' % (codename, release)
35        print 'Codename: %s%s' % (codename, release)
36        print 'Version: %s' % version
37        print 'Architectures: %s source' % ' '.join(architectures)
38        print 'Components: %s' % ' '.join(components)
39        print 'Description: Debathena packages for %s %s %s' % (distro, version, codename)
40        print 'SignWith: 0x%s' % key
41        print 'Contents: . .gz'
42        print 'DebIndices: Packages Release . .gz .bz2'
43        print 'DscIndices: Sources Release . .gz .bz2'
44        print
Note: See TracBrowser for help on using the repository browser.