Skip to content

Commit

Permalink
Convert a couple files to UTF-8; more Copyright years.
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneD committed Jun 13, 2020
1 parent ab0189c commit 7dec402
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion backup.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Backup handling code.
*
* Copyright (C) 1999 Andrew Tridgell
* Copyright (C) 2003-2019 Wayne Davison
* Copyright (C) 2003-2020 Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion hashtable.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Routines to provide a memory-efficient hashtable.
*
* Copyright (C) 2007-2019 Wayne Davison
* Copyright (C) 2007-2020 Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion hlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 1996 Andrew Tridgell
* Copyright (C) 1996 Paul Mackerras
* Copyright (C) 2002 Martin Pool <mbp@samba.org>
* Copyright (C) 2004-2019 Wayne Davison
* Copyright (C) 2004-2020 Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
7 changes: 4 additions & 3 deletions packaging/year-tweak
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ def main():
m = argparse.Namespace(**m.groupdict())
if m.year > latest_year:
latest_year = m.year
if not re.search(r'\.(c|h|sh)$', m.fn) or m.fn.startswith('zlib/'):
if m.fn.startswith('zlib/') or m.fn.startswith('popt/'):
continue
maybe_edit_copyright_year(m.fn, m.year)
if re.search(r'\.(c|h|sh|test)$', m.fn):
maybe_edit_copyright_year(m.fn, m.year)
proc.communicate()

fn = 'latest-year.h'
Expand Down Expand Up @@ -71,7 +72,7 @@ def maybe_edit_copyright_year(fn, year):
return
opening_lines[copyright_line.lineno - 1] = txt
else:
if fn.startswith('lib/'):
if fn.startswith('lib/') or fn.startswith('testsuite/'):
return
txt = copyright_line.pre + year + MAINTAINER_SUF
opening_lines[copyright_line.lineno - 1] += txt
Expand Down
2 changes: 1 addition & 1 deletion testsuite/backup.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Copyright (C) 2004 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2004-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down
2 changes: 1 addition & 1 deletion testsuite/chmod-temp-dir.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Copyright (C) 2004 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2004-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down
2 changes: 1 addition & 1 deletion testsuite/chmod.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Copyright (C) 2004 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2004-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down
2 changes: 1 addition & 1 deletion testsuite/compare-dest.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Copyright (C) 2004 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2004-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down
2 changes: 1 addition & 1 deletion testsuite/delete.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Copyright (C) 2005 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2005-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down
2 changes: 1 addition & 1 deletion testsuite/files-from.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

# Copyright (C) 2008 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2008-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down
2 changes: 1 addition & 1 deletion testsuite/fuzzy.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Copyright (C) 2005 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2005-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down
2 changes: 1 addition & 1 deletion testsuite/itemize.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Copyright (C) 2005 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2005-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down
2 changes: 1 addition & 1 deletion testsuite/merge.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Copyright (C) 2004 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2004-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down
2 changes: 1 addition & 1 deletion testsuite/relative.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

# Copyright (C) 2005 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2005-2020 Wayne Davison
#
# This program is distributable under the terms of the GNU GPL (see COPYING)

Expand Down
2 changes: 1 addition & 1 deletion testsuite/unsafe-byname.test
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test_unsafe dir/..//.. from unsafe

test_unsafe '' from unsafe

# Based on tests from unsafe-links by Vladimír Michl
# Based on tests from unsafe-links by Vladimír Michl
test_unsafe ../../unsafe/unsafefile from/safe unsafe
test_unsafe ..//../unsafe/unsafefile from/safe unsafe
test_unsafe ../files/file1 from/safe safe
Expand Down
2 changes: 1 addition & 1 deletion testsuite/unsafe-links.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Originally by Vladimír Michl <Vladimir.Michl@hlubocky.del.cz>
# Originally by Vladimír Michl <Vladimir.Michl@hlubocky.del.cz>

. "$suitedir/rsync.fns"

Expand Down
2 changes: 1 addition & 1 deletion testsuite/wildmatch.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

# Copyright (C) 2003 by Wayne Davison <wayned@samba.org>
# Copyright (C) 2003-2020 Wayne Davison

# This program is distributable under the terms of the GNU GPL (see
# COPYING).
Expand Down

0 comments on commit 7dec402

Please sign in to comment.