preserve Sourcery comment header in make sourcery

This commit is contained in:
JP Simard
2017-06-02 14:28:37 -07:00
parent 9a81734081
commit f1417da079
3 changed files with 10 additions and 4 deletions
+6 -4
View File
@@ -30,11 +30,13 @@ all: bootstrap
sourcery:
sourcery --sources Tests --templates .sourcery/LinuxMain.stencil --output .sourcery
tail -n +4 .sourcery/LinuxMain.generated.swift > Tests/LinuxMain.swift
rm .sourcery/LinuxMain.generated.swift
sed -e 4,11d .sourcery/LinuxMain.generated.swift > .sourcery/LinuxMain.swift
sed -n 4,10p .sourcery/LinuxMain.generated.swift | cat - .sourcery/LinuxMain.swift > Tests/LinuxMain.swift
rm .sourcery/LinuxMain.swift .sourcery/LinuxMain.generated.swift
sourcery --sources Source/SwiftLintFramework/Rules --templates .sourcery/MasterRuleList.stencil --output .sourcery
tail -n +4 .sourcery/MasterRuleList.generated.swift > Source/SwiftLintFramework/Models/MasterRuleList.swift
rm .sourcery/MasterRuleList.generated.swift
sed -e 4,11d .sourcery/MasterRuleList.generated.swift > .sourcery/MasterRuleList.swift
sed -n 4,10p .sourcery/MasterRuleList.generated.swift | cat - .sourcery/MasterRuleList.swift > Source/SwiftLintFramework/Models/MasterRuleList.swift
rm .sourcery/MasterRuleList.swift .sourcery/MasterRuleList.generated.swift
bootstrap:
script/bootstrap
@@ -5,6 +5,8 @@
// Created by Scott Hoyt on 12/28/15.
// Copyright © 2015 Realm. All rights reserved.
//
// Generated using Sourcery 0.6.1 https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
public let masterRuleList = RuleList(rules:
AttributesRule.self,
+2
View File
@@ -5,6 +5,8 @@
// Created by JP Simard on 12/11/16.
// Copyright © 2016 Realm. All rights reserved.
//
// Generated using Sourcery 0.6.1 https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
@testable import SwiftLintFrameworkTests
import XCTest