File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ script_path=$( dirname $( realpath -s $0 ) ) /../
4+
5+
6+ (find " $script_path " -name " *.fs" | grep -v " /bin/" | grep -v " /obj/" )| while read fname; do
7+ line=$( head -n 1 " $fname " )
8+ if [[ " $line " =~ ^/ ]] || [[ " $line " =~ ^# ]] ; then
9+ echo " Skipped already starts with / or #: $fname "
10+ else
11+ cat " ${script_path} build/file-header.txt" " $fname " > " ${fname} .new"
12+ mv " ${fname} .new" " $fname "
13+ fi
14+ done
15+
16+ (find " $script_path " -name " *.cs" | grep -v " /bin/" | grep -v " /obj/" )| while read fname; do
17+ line= $( head -n 1 " $fname " )
18+ if [[ " $line " =~ ^/ ]] || [[ " $line " =~ ^# ]] ; then
19+ echo " Skipped already starts with / or #: $fname "
20+ else
21+ cat " ${script_path} build/file-header.txt" " $fname " > " ${fname} .new"
22+ mv " ${fname} .new" " $fname "
23+ fi
24+ done
Original file line number Diff line number Diff line change 1+ // Licensed to Elasticsearch B.V under one or more agreements.
2+ // Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+ // See the LICENSE file in the project root for more information
4+
You can’t perform that action at this time.
0 commit comments