Subversion Repositories HelenOS-historic

Rev

Rev 560 | Rev 566 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 560 Rev 561
Line 3... Line 3...
3
Kernel configuration script
3
Kernel configuration script
4
"""
4
"""
5
import sys
5
import sys
6
import os
6
import os
7
import re
7
import re
-
 
8
import commands
8
 
9
 
9
INPUT = 'kernel.config'
10
INPUT = 'kernel.config'
10
OUTPUT = 'Makefile.config'
11
OUTPUT = 'Makefile.config'
11
TMPOUTPUT = 'Makefile.config.tmp'
12
TMPOUTPUT = 'Makefile.config.tmp'
12
 
13
 
Line 374... Line 375...
374
            # Last comment before question will be displayed to the user
375
            # Last comment before question will be displayed to the user
375
            comment = line[1:].strip()
376
            comment = line[1:].strip()
376
        elif line.startswith('## '):
377
        elif line.startswith('## '):
377
            # Set title of the dialog window
378
            # Set title of the dialog window
378
            dlg.set_title(line[2:].strip())
379
            dlg.set_title(line[2:].strip())
-
 
380
 
379
       
381
    outf.write('\n')
-
 
382
    outf.write('REVISION=%s\n' % commands.getoutput('svnversion . 2> /dev/null'))
-
 
383
    outf.write('TIMESTAMP=%s\n' % commands.getoutput('date "+%Y-%m-%d %H:%M:%S"'))
380
    outf.close()
384
    outf.close()
381
    f.close()
385
    f.close()
382
    return asked_names
386
    return asked_names
383
 
387
 
384
def main():
388
def main():