From bc267f8412ab2c078116de38e1633aac73616c0b Mon Sep 17 00:00:00 2001 From: debris Date: Fri, 5 Feb 2016 13:36:30 +0100 Subject: [PATCH] prepare for adding licenses --- add_license.sh | 6 ++++++ license_header | 16 ++++++++++++++++ util/src/uint.rs | 11 +++++------ 3 files changed, 27 insertions(+), 6 deletions(-) create mode 100755 add_license.sh create mode 100644 license_header diff --git a/add_license.sh b/add_license.sh new file mode 100755 index 000000000..449633eb4 --- /dev/null +++ b/add_license.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +for f in **/*.rs; do + cat license_header $f > $f.new + mv $f.new $f +done diff --git a/license_header b/license_header new file mode 100644 index 000000000..d4ebdc448 --- /dev/null +++ b/license_header @@ -0,0 +1,16 @@ +// Copyright 2015, 2016 Ethcore (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 . + diff --git a/util/src/uint.rs b/util/src/uint.rs index 568885c82..4b1fba5e7 100644 --- a/util/src/uint.rs +++ b/util/src/uint.rs @@ -1,5 +1,4 @@ -// taken from Rust Bitcoin Library (https://github.com/apoelstra/rust-bitcoin) -// original author: Andrew Poelstra +// Code derived from original work by Andrew Poelstra // Rust Bitcoin Library // Written in 2014 by @@ -16,10 +15,10 @@ // //! Big unsigned integer types -///! -///! Implementation of a various large-but-fixed sized unsigned integer types. -///! The functions here are designed to be fast. -///! +//! +//! Implementation of a various large-but-fixed sized unsigned integer types. +//! The functions here are designed to be fast. +//! use standard::*; use from_json::*;