mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
etc: add missing license boilerplates
This commit is contained in:
parent
fc1d655ed2
commit
0ebe112b3b
@ -1,5 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
# Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
# xfail-license
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
# Copyright 2011-2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
# xfail-license
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
# this combines all the working run-pass tests into a single large crate so we
|
# This combines all the working run-pass tests into a single large crate so we
|
||||||
# can run it "fast": spawning zillions of windows processes is our major build
|
# can run it "fast": spawning zillions of windows processes is our major build
|
||||||
# bottleneck (and it doesn't hurt to run faster on other platforms as well).
|
# bottleneck (and it doesn't hurt to run faster on other platforms as well).
|
||||||
|
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
# Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
# xfail-license
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
# Copies Rust runtime dependencies to the specified directory
|
# Copies Rust runtime dependencies to the specified directory.
|
||||||
|
|
||||||
import snapshot, sys, os, shutil
|
import snapshot, sys, os, shutil
|
||||||
|
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
# xfail-license
|
# Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
# -*- coding: utf-8 -*-
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Script for extracting compilable fragments from markdown documentation. See
|
Script for extracting compilable fragments from markdown documentation. See
|
||||||
prep.js for a description of the format recognized by this tool. Expects
|
prep.js for a description of the format recognized by this tool. Expects
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
# Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
# xfail-license
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
# This script is for extracting the grammar from the rust docs.
|
# This script is for extracting the grammar from the rust docs.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# xfail-license
|
#
|
||||||
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
# file at the top-level directory of this distribution and at
|
# file at the top-level directory of this distribution and at
|
||||||
# http://rust-lang.org/COPYRIGHT.
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# xfail-license
|
#
|
||||||
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
# file at the top-level directory of this distribution and at
|
# file at the top-level directory of this distribution and at
|
||||||
# http://rust-lang.org/COPYRIGHT.
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
# Copyright 2011-2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
# xfail-license
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
import os, tarfile, re, shutil, sys
|
import os, tarfile, re, shutil, sys
|
||||||
from snapshot import *
|
from snapshot import *
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# xfail-license
|
#
|
||||||
|
# Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
import os, tarfile, hashlib, re, shutil, sys
|
import os, tarfile, hashlib, re, shutil, sys
|
||||||
from snapshot import *
|
from snapshot import *
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
# Copyright 2011-2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
# xfail-license
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
import snapshot, sys
|
import snapshot, sys
|
||||||
|
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
# xfail-license
|
# Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# xfail-license
|
#
|
||||||
|
# Copyright 2011-2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
import os, tarfile, hashlib, re, shutil
|
import os, tarfile, hashlib, re, shutil
|
||||||
from snapshot import *
|
from snapshot import *
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
# xfail-license
|
# Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
# xfail-license
|
# Copyright 2011-2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
import re, os, sys, glob, tarfile, shutil, subprocess, tempfile, distutils.spawn
|
import re, os, sys, glob, tarfile, shutil, subprocess, tempfile, distutils.spawn
|
||||||
|
|
||||||
@ -31,8 +39,7 @@ snapshot_files = {
|
|||||||
"freebsd": ["bin/rustc"],
|
"freebsd": ["bin/rustc"],
|
||||||
}
|
}
|
||||||
|
|
||||||
winnt_runtime_deps = ["libgcc_s_dw2-1.dll",
|
winnt_runtime_deps = ["libgcc_s_dw2-1.dll", "libstdc++-6.dll"]
|
||||||
"libstdc++-6.dll"]
|
|
||||||
|
|
||||||
def parse_line(n, line):
|
def parse_line(n, line):
|
||||||
global snapshotfile
|
global snapshotfile
|
||||||
@ -48,7 +55,7 @@ def parse_line(n, line):
|
|||||||
"hash": match.group(2).lower() }
|
"hash": match.group(2).lower() }
|
||||||
|
|
||||||
match = re.match(r"([ST]) (\d{4}-\d{2}-\d{2}) ([a-fA-F\d]+)\s*$", line);
|
match = re.match(r"([ST]) (\d{4}-\d{2}-\d{2}) ([a-fA-F\d]+)\s*$", line);
|
||||||
if (not match):
|
if not match:
|
||||||
raise Exception("%s:%d:E syntax error: " % (snapshotfile, n))
|
raise Exception("%s:%d:E syntax error: " % (snapshotfile, n))
|
||||||
return { "type": "snapshot",
|
return { "type": "snapshot",
|
||||||
"date": match.group(2),
|
"date": match.group(2),
|
||||||
@ -86,8 +93,7 @@ def get_platform(triple):
|
|||||||
|
|
||||||
|
|
||||||
def cmd_out(cmdline):
|
def cmd_out(cmdline):
|
||||||
p = subprocess.Popen(cmdline,
|
p = subprocess.Popen(cmdline, stdout=subprocess.PIPE)
|
||||||
stdout=subprocess.PIPE)
|
|
||||||
return scrub(p.communicate()[0].strip())
|
return scrub(p.communicate()[0].strip())
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# xfail-license
|
#
|
||||||
|
# Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
#
|
#
|
||||||
# this script attempts to turn doc comment attributes (#[doc = "..."])
|
# this script attempts to turn doc comment attributes (#[doc = "..."])
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
# Copyright 2010-2014 The Rust Project Developers. See the COPYRIGHT
|
||||||
# xfail-license
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
import sys, fileinput, subprocess, re
|
import sys, fileinput, subprocess, re
|
||||||
from licenseck import *
|
from licenseck import *
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# xfail-license
|
#
|
||||||
|
# Copyright 2011-2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
# This digests UnicodeData.txt and DerivedCoreProperties.txt and emits rust
|
# This digests UnicodeData.txt and DerivedCoreProperties.txt and emits rust
|
||||||
# code covering the core properties. Since this is a pretty rare event we
|
# code covering the core properties. Since this is a pretty rare event we
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# xfail-license
|
#
|
||||||
|
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
||||||
|
# file at the top-level directory of this distribution and at
|
||||||
|
# http://rust-lang.org/COPYRIGHT.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
# option. This file may not be copied, modified, or distributed
|
||||||
|
# except according to those terms.
|
||||||
|
|
||||||
# This creates the tables used for distributions implemented using the
|
# This creates the tables used for distributions implemented using the
|
||||||
# ziggurat algorithm in `std::rand::distributions;`. They are
|
# ziggurat algorithm in `std::rand::distributions;`. They are
|
||||||
|
Loading…
Reference in New Issue
Block a user