Skip to content

Commit

Permalink
Use Copyright-Header.txt as template for the header.
Browse files Browse the repository at this point in the history
Also, restrict the header to the Source and Tests directories,
otherwise all the pods were being added our header each time they
updated.
  • Loading branch information
drodriguez committed Dec 13, 2013
1 parent ef4782e commit bdd882e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
@@ -1,2 +1,3 @@
*.pbxproj binary merge=union
*.[hm] filter=typhoonheader
Source/*.[hm] filter=typhoonheader
Tests/*.[hm] filter=typhoonheader
13 changes: 1 addition & 12 deletions Scripts/typhoonheader
Expand Up @@ -4,18 +4,7 @@
# git config filter.typhoonheader.smudge 'cat'
# git config filter.typhoonheader.clean '`git rev-parse --git-dir`/../scripts/typhoonheader'

TYPHOON_HEADER = <<EOS
////////////////////////////////////////////////////////////////////////////////
//
// TYPHOON FRAMEWORK
// Copyright 2013, Jasper Blues & Contributors
// All Rights Reserved.
//
// NOTICE: The authors permit you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
EOS
TYPHOON_HEADER = File.open(File.join(File.dirname($0), '..', 'Copyright-Header.txt')).read

XCODE_HEADER = Regexp.new(<<EOS)
\\A//
Expand Down

0 comments on commit bdd882e

Please sign in to comment.