-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request moby#1083 from hukeli/debian
Keep debian package up-to-date
- Loading branch information
Showing
2 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python | ||
|
||
'Parse main CHANGELOG.md from stdin outputing on stdout the debian changelog' | ||
|
||
import sys,re, datetime | ||
|
||
on_block=False | ||
for line in sys.stdin.readlines(): | ||
line = line.strip() | ||
if line.startswith('# ') or len(line) == 0: | ||
continue | ||
if line.startswith('## '): | ||
if on_block: | ||
print '\n -- dotCloud <[email protected]> {0}\n'.format(date) | ||
version, date = line[3:].split() | ||
date = datetime.datetime.strptime(date, '(%Y-%m-%d)').strftime( | ||
'%a, %d %b %Y 00:00:00 -0700') | ||
on_block = True | ||
print 'lxc-docker ({0}-1) precise; urgency=low'.format(version) | ||
continue | ||
if on_block: | ||
print ' ' + line | ||
print '\n -- dotCloud <[email protected]> {0}'.format(date) |