File: distdate.py

package info (click to toggle)
python-omniorb2 2.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,580 kB
  • ctags: 2,583
  • sloc: cpp: 11,972; python: 7,679; sh: 2,523; makefile: 111; xml: 69; ansic: 12
file content (25 lines) | stat: -rwxr-xr-x 414 bytes parent folder | download | duplicates (9)
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
#!/usr/bin/env python

# Script to extract the distribution date from update.log

import sys, string

if len(sys.argv) > 1:
    package = sys.argv[1]
else:
    package = "OMNIORB"

line = sys.stdin.readline()

while line == "\n":
    line = sys.stdin.readline()

line = string.strip(line)

output = """\
// distdate.hh -- Automatically generated file

#define %s_DIST_DATE "%s"
"""

print output % (package, line)