diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-03-06 00:08:52 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-03-06 08:24:57 +0000 |
commit | 4f48f5170f573bcbe613008ede8ac7ecc4991df7 (patch) | |
tree | 3be0b5e7caec092dc1c2bb1361459c1d9d2fedf5 /src | |
parent | bump version to 0.1.3 (diff) | |
download | cargo-ebuild-4f48f5170f573bcbe613008ede8ac7ecc4991df7.tar.gz cargo-ebuild-4f48f5170f573bcbe613008ede8ac7ecc4991df7.tar.bz2 cargo-ebuild-4f48f5170f573bcbe613008ede8ac7ecc4991df7.zip |
src/ebuild.template: add valid Gentoo copyright header to generated ebuilds
Bug: https://bugs.gentoo.org/611542
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ebuild.template | 3 | ||||
-rw-r--r-- | src/main.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ebuild.template b/src/ebuild.template index bbaf69e..2ac9447 100644 --- a/src/ebuild.template +++ b/src/ebuild.template @@ -1,3 +1,6 @@ +# Copyright 2017-{this_year} Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + # Auto-Generated by cargo-ebuild {cargo_ebuild_ver} EAPI=6 diff --git a/src/main.rs b/src/main.rs index b5ffc76..1c55831 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ extern crate cargo; extern crate rustc_serialize; +extern crate time; use cargo::{Config, CliError, CliResult}; use cargo::core::Package; @@ -98,6 +99,7 @@ fn real_main(options: Options, config: &Config) -> CliResult<Option<()>> { license = license.trim(), crates = crates.join(""), cargo_ebuild_ver = env!("CARGO_PKG_VERSION"), + this_year = 1900 + time::now().tm_year, ) .map_err(|err| { CliError::new(&format!("unable to write ebuild to disk: {}", err.description()), |