blob: da826453d23d125a329fc7da0145d4d7ffc9fc01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/python
import os
import patchtracker.Conf as Conf
from patchtracker.Writers import LetterTocWriter, FrontPageWriter, PackageVersWriter
from patchtracker.SourceArchive import Archive, SourcePackage, SourcePackageIndex
if __name__ == '__main__':
os.system("cheetah compile templates/skeleton")
a = Archive(Conf.archive_root)
# just for now until development stablizes
#os.system("rm -rf "+Conf.output_dir)
#os.mkdir(Conf.output_dir)
print a
master_index = SourcePackageIndex()
for s in a.suites():
print "suite: ",s
for c in a.components(s):
print "\tcomponent:",c
for p in a.sourcepackages(s, c):
print "\t\tpackage:",p
PackageVersWriter(p, s)
master_index.ins(p,s)
os.system("cp -a "+Conf.static_dir+"/* "+Conf.output_dir)
FrontPageWriter(master_index)
for letter,stuff in master_index.indices():
LetterTocWriter(letter,stuff)
|