@@ -98,24 +98,13 @@ extension Docc.ProcessArchive {
98
98
let initialDocCArchiveAPIs : [ URL ] = try findAllSymbolLinks ( initialPath: initialDocCArchivePath)
99
99
let newDocCArchiveAPIs : [ URL ] = try findAllSymbolLinks ( initialPath: newerDocCArchivePath)
100
100
101
- print ( " \n Initial DocC Archive: " )
102
- printAllSymbols ( symbols: initialDocCArchiveAPIs)
103
-
104
- print ( " \n New DocC Archive: " )
105
- printAllSymbols ( symbols: newDocCArchiveAPIs)
106
-
107
101
let initialSet = Set ( initialDocCArchiveAPIs. map { $0 } )
108
102
let newSet = Set ( newDocCArchiveAPIs. map { $0 } )
109
103
110
104
// Compute additions and removals to both sets
111
105
let additionsToNewSet = newSet. subtracting ( initialSet)
112
106
let removedFromOldSet = initialSet. subtracting ( newSet)
113
107
114
- print ( " \n Additions to New DocC Archive: " )
115
- printAllSymbols ( symbols: Array ( additionsToNewSet) )
116
- print ( " \n Removals from Initial DocC Archive: " )
117
- printAllSymbols ( symbols: Array ( removedFromOldSet) )
118
-
119
108
// Map identifier urls in differences to external urls
120
109
let additionsExternalURLs = Set ( additionsToNewSet. map { findExternalLink ( identifierURL: $0) } )
121
110
let removalsExternalURLs = Set ( removedFromOldSet. map { findExternalLink ( identifierURL: $0) } )
@@ -145,7 +134,9 @@ extension Docc.ProcessArchive {
145
134
for fileNameAndContent in Docc . ProcessArchive. DiffDocCArchive. changeLogTemplateFileContent ( frameworkName: frameworkName, initialDocCArchiveVersion: initialDocCArchiveVersion, newerDocCArchiveVersion: newerDocCArchiveVersion, additionLinks: additionLinks, removalLinks: removalLinks) {
146
135
let fileName = fileNameAndContent. key
147
136
let content = fileNameAndContent. value
148
- try FileManager . default. createFile ( at: initialDocCArchivePath. deletingLastPathComponent ( ) . appendingPathComponent ( fileName) , contents: Data ( content. utf8) )
137
+ let filePath = initialDocCArchivePath. deletingLastPathComponent ( ) . appendingPathComponent ( fileName)
138
+ try FileManager . default. createFile ( at: filePath, contents: Data ( content. utf8) )
139
+ print ( " \n Output file path: \( filePath) " )
149
140
}
150
141
}
151
142
0 commit comments