Generate correct license for R8Lib.c & R8Lib.h

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3427 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2007-07-24 11:54:42 +00:00
parent 07ffaeb8c1
commit 9d5349800f

View File

@ -419,14 +419,14 @@ public final class SourceFileReplacer implements Common.ForDoAll {
Matcher mtrr8onlyhead; Matcher mtrr8onlyhead;
// add head comment // add head comment
Matcher mtrr8onlyheadcomment = Critic.PTN_NEW_HEAD_COMMENT if (mi.license != null) {
.matcher(line); String header = "/**@file\n Copyright (c) 2007, Intel Corporation\n\n" +
if (mtrr8onlyheadcomment.find()) { mi.license.replace(" ", " ") + "**/\n\n";
outfile1.append(mtrr8onlyheadcomment.group() + "\n\n"); outfile1.append(header);
outfile2.append(mtrr8onlyheadcomment.group() + "\n\n"); outfile2.append(header);
} }
// add functions body // add functions body
while (mtrr8only.find()) { while (mtrr8only.find()) {
if (mi.hashr8only.contains(mtrr8only.group(3))) { if (mi.hashr8only.contains(mtrr8only.group(3))) {
paragraph = mtrr8only.group(2); paragraph = mtrr8only.group(2);