~tsimonq2/ubuntu-cve-tracker/triage

« back to all changes in this revision

Viewing changes to scripts/generate-pkgs-makefile.py

  • Committer: Kees Cook
  • Date: 2009-10-20 17:38:25 UTC
  • Revision ID: kees.cook@canonical.com-20091020173825-e0xicev4s0pkd0bg
include bzr commit link that caused an update

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
TARGET=$(shell echo $$TARGET)
43
43
PKGOUT=$(shell echo $$TARGET)/pkg
44
44
ACTIVE=$(shell echo $$ACTIVE)
 
45
BZR_COMMIT=$(shell bzr log --limit=1 --line | cut -d: -f1)
45
46
'''
46
47
 
47
48
#  cveinfo:  cve ->
160
161
for pkg in sorted(pkginfo):
161
162
    cve_str = " ".join(['$(ACTIVE)/%s' % (x) for x in sorted(pkginfo[pkg])])
162
163
    print '''$(PKGOUT)/%s.html: $(SCRIPTS)/html_export.py %s
163
 
\t$(SCRIPTS)/html-export-pkg.py $(shell basename $@ .html) %s > $@.tmp
 
164
\t$(SCRIPTS)/html-export-pkg.py --commit $(BZR_COMMIT) $(shell basename $@ .html) %s > $@.tmp
164
165
\tmv $@.tmp $@
165
166
''' % (pkg, cve_str, cve_str)