]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Generate correct license for R8Lib.c & R8Lib.h
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 24 Jul 2007 11:54:42 +0000 (11:54 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 24 Jul 2007 11:54:42 +0000 (11:54 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3427 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Java/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java

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