Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
include c and cpp files too
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 committed May 20, 2018
1 parent 1037d59 commit 5c7df76
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
16 changes: 16 additions & 0 deletions parity-clib-example/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.

// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Parity is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

#include <cstddef>
#include <unistd.h>
#include <parity.h>
Expand Down
2 changes: 1 addition & 1 deletion scripts/add_license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PAT_GPL="^// Copyright.*If not, see <http://www.gnu.org/licenses/>\.$"
PAT_OTHER="^// Copyright"

for f in $(find . -name '*.rs'); do
for f in $(find . -type f | egrep '\.(c|cpp|rs)$'); do
HEADER=$(head -16 $f)
if [[ $HEADER =~ $PAT_GPL ]]; then
BODY=$(tail -n +17 $f)
Expand Down
3 changes: 1 addition & 2 deletions windows/ptray/ptray.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.

// Parity is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -358,4 +358,3 @@ void EnableAutostart(bool enable) {
RegDeleteValue(hKey, L"Parity");
}
}

0 comments on commit 5c7df76

Please sign in to comment.