You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.1 KiB
22 lines
1.1 KiB
# copyright (c) 1997 Microsoft Corporation
|
|
# program to strip out lines between //BeginExport and //EndExport
|
|
# it puts the standard copyright header and a trailing end of file
|
|
|
|
BEGIN {
|
|
print "//========================================================================"
|
|
print "// Copyright (C) 1997 Microsoft Corporation "
|
|
print "// Author: RameshV "
|
|
print "// Description: This file has been generated. Pl look at the .c file "
|
|
print "//========================================================================"
|
|
}
|
|
/[/][/]EndExport.*function/ { print ") ;" }
|
|
/[/][/]EndExport/ { in_export = 0; print ""}
|
|
{ if( in_export ) print; }
|
|
/[/][/]BeginExport/ { in_export = 1; print ""}
|
|
|
|
END {
|
|
print "//========================================================================"
|
|
print "// end of file "
|
|
print "//========================================================================"
|
|
}
|
|
|