FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
androidannotations/check_missing_copyright.sh at develop · androidannotations/androidannotations · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
androidannotations
/
androidannotations
Public archive
Notifications
You must be signed in to change notification settings
Fork
2.3k
Star
11k
Code
Issues
50
Pull requests
0
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
androidannotations
/
check_missing_copyright.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
23 lines (21 loc) · 695 Bytes
Breadcrumbs
androidannotations
/
check_missing_copyright.sh
Copy path
File metadata and controls
executable file
·
23 lines (21 loc) · 695 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!
/bin/bash
FILES=
`
git diff --name-only HEAD 5ea91f453d4b1ec3d3f3d08447b419a668f97c71
`
HAS_MISSING=false
for
f
in
$FILES
do
#
take action on each file. $f store current file name
hasCopyright=
$(
grep
"
Copyright (
"
$f
2>&
-
)
if
[
$?
-eq
0 ]
&&
[
$f
!=
"
check_missing_copyright.sh
"
]
;
then
hasAACopyright=
$(
echo
"
$hasCopyright
"
|
grep
"
the AndroidAnnotations project
"
)
if
[
$?
-ne
0 ]
;
then
echo
"
$f
"
echo
"
$hasCopyright
"
echo
"
$hasAACopyright
"
HAS_MISSING=true
fi
fi
done
if
[
$HAS_MISSING
==
true
]
;
then
echo
"
Please add second copyright line: 'Copyright (C) 2016-<current> the AndroidAnnotations project' for the files listed above!
"
exit
1
fi
Back
|
FazBrowse Home
|
New Git URL