diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-04-24 17:14:03 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-04-30 13:34:06 +0100 |
commit | 72e5d0c8fbedb509fccec7aa8bd03f89cda9ef6d (patch) | |
tree | 24f9bc11331c1143d03abcd5bb1aacd5adb835f5 /bin | |
parent | ade26b5c7bd2a88be5147feace1969cc01ae3ed4 (diff) |
Move to MPLv2 license headers, with ESC decision and author's permission.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/doubleNewlines.pl | 63 | ||||
-rwxr-xr-x | bin/fuzzfiles | 26 | ||||
-rw-r--r-- | bin/java-set-classpath.in | 29 | ||||
-rw-r--r--[-rwxr-xr-x] | bin/unpack-sources | 29 |
4 files changed, 17 insertions, 130 deletions
diff --git a/bin/doubleNewlines.pl b/bin/doubleNewlines.pl deleted file mode 100755 index c1f66e57ea17..000000000000 --- a/bin/doubleNewlines.pl +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/perl -################################################################################ -# Version: MPL 1.1 / GPLv3+ / LGPLv3+ -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License or as specified alternatively below. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Initial Developer of the Original Code is -# Michael Koch <miko@gmx.ch> -# -# Major Contributor(s): -# <name> -# -# For minor contributions see the git repository. -# -# Alternatively, the contents of this file may be used under the terms of -# either the GNU General Public License Version 3 or later (the "GPLv3+"), or -# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), -# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable -# instead of those above. -################################################################################ -# Usage: "Usage: doubleNewlines.pl <directory>" -# It is possible to enter more than one directory separated by spaces. -# Instead of a directory you can also use one or more files as arguments. -################################################################################ - -use strict; -use warnings; - -use File::Find; -use Cwd 'abs_path'; - -my $total = 0; - -die "Usage: doubleNewlines.pl <directory>\n" unless (@ARGV); - -# if path is relative, make it absolute -foreach (@ARGV){ - $_ = abs_path($_); -} - -print "Following code files (.hxx and .cxx) are suspicious:\n"; -find(\&processFile, @ARGV); # processes all files in dir and subdirs -print "Found $total suspicious files.\n"; - -sub processFile { - my $file = $File::Find::name; - return unless $file =~ /(.cxx$)|(.hxx$)/; - open FILE, $file or die "Can't open '$file': $!"; - my $lines = join '', <FILE>; - if ($lines =~ /(\n{2,}.+){10}/) { # ten consecutive occurrences of [empty line(s) - code line)] - my $relPath = substr($file, index($file, "clone")+6); # relative path beginning with repo name - print "$relPath\n"; - $total++; - } -} diff --git a/bin/fuzzfiles b/bin/fuzzfiles index c6e509ea7793..99b503e3bd69 100755 --- a/bin/fuzzfiles +++ b/bin/fuzzfiles @@ -1,29 +1,11 @@ #! /bin/bash - -# Version: MPL 1.1 / GPLv3+ / LGPLv3+ -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License or as specified alternatively below. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# Major Contributor(s): -# Copyright (C) 2011 Tata Consultancy Services, Ltd. Marc-Andre Laverdiere <marc-andre@atc.tcs.com> (initial developer) # -# All Rights Reserved. +# This file is part of the LibreOffice project. # -# For minor contributions see the git repository. +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. # -# Alternatively, the contents of this file may be used under the terms of -# either the GNU General Public License Version 3 or later (the "GPLv3+"), or -# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), -# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable -# instead of those above. #check that zzuf is installed hash zzuf &> /dev/null diff --git a/bin/java-set-classpath.in b/bin/java-set-classpath.in index 612891878185..507264a3dcff 100644 --- a/bin/java-set-classpath.in +++ b/bin/java-set-classpath.in @@ -1,32 +1,21 @@ #!/bin/sh - -#***************************************************************************** -# -# java-set-classpath - Utility to update the default CLASSPATH for OpenOffice.org -# -# Initial version by: Petr Mladek <pmladek@suse.cz> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2, as -# published by the Free Software Foundation. +# This file is part of the LibreOffice project. # -# This program 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. +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. # -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -#***************************************************************************** + +# java-set-classpath - Utility to update the default +# CLASSPATH for LibreOffice if test "z$1" = "z" ; then - echo "Update the default CLASSPATH for OpenOffice.org" + echo "Update the default CLASSPATH for LibreOffice" echo "" echo "Usage: $0 [dir|jar]..." echo "" - echo "The utility updates the OpenOffice.org system setting. It adds or removes" + echo "The utility updates the LibreOffice system setting. It adds or removes" echo "the given directories and jar-files to or from the default CLASSPATH" echo "depending on if they are available on the system or not." echo "" diff --git a/bin/unpack-sources b/bin/unpack-sources index 0fe4499c3197..4b0f9beb0c8d 100755..100644 --- a/bin/unpack-sources +++ b/bin/unpack-sources @@ -1,33 +1,12 @@ #!/usr/bin/env bash -# Version: MPL 1.1 / GPLv3+ / LGPLv3+ # -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License or as specified alternatively below. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ +# This file is part of the LibreOffice project. # -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. # -# The Initial Developer of the Original Code is -# Petr Mladek <pmladek@suse.cz> -# Portions created by the Initial Developer are Copyright (C) 2011 the -# Initial Developer. All Rights Reserved. -# -# Major Contributor(s): -# Ted <ted@bear.com> -# Portions created by the Ted are Copyright (C) 2010 Ted. All Rights Reserved. -# -# For minor contributions see the git repository. -# -# Alternatively, the contents of this file may be used under the terms of -# either the GNU General Public License Version 3 or later (the "GPLv3+"), or -# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), -# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable -# instead of those above. usage() { |