File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ printf "\033[0;32mokay.\033[0m\n"
40
40
printf " => Checking license headers… "
41
41
tmp=$( mktemp /tmp/.swift-markdown-check-source_XXXXXX)
42
42
43
- for language in swift-or-c bash md-or-tutorial html docker; do
43
+ for language in swift-or-c snippet bash md-or-tutorial html docker; do
44
44
declare -a matching_files
45
45
declare -a exceptions
46
46
declare -a reader
@@ -61,6 +61,22 @@ for language in swift-or-c bash md-or-tutorial html docker; do
61
61
See https://swift.org/LICENSE.txt for license information
62
62
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
63
63
*/
64
+ EOF
65
+ ;;
66
+ snippet)
67
+ matching_files=( -name ' *.swift' -a -path ' ./Snippets/*' )
68
+ exceptions=( -name ' Package*.swift' )
69
+ reader=tail
70
+ cat > " $tmp " << "EOF "
71
+ /*
72
+ This source file is part of the Swift.org open source project
73
+
74
+ Copyright (c) YEARS Apple Inc. and the Swift project authors
75
+ Licensed under Apache License v2.0 with Runtime Library Exception
76
+
77
+ See https://swift.org/LICENSE.txt for license information
78
+ See https://swift.org/CONTRIBUTORS.txt for Swift project authors
79
+ */
64
80
EOF
65
81
;;
66
82
bash)
150
166
printf " \033[0;32mokay.\033[0m\n"
151
167
rm " $tmp "
152
168
169
+ # vim: filetype=bash shiftwidth=2 softtabstop=2
You can’t perform that action at this time.
0 commit comments