From 665705d06df5a81bfb73e078bd6076ef3b70ac8b Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Tue, 4 Mar 2025 11:23:26 +0900 Subject: [PATCH 1/4] Add Janet script to update copyright disclaimer --- tools/update_copyright.janet | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tools/update_copyright.janet diff --git a/tools/update_copyright.janet b/tools/update_copyright.janet new file mode 100644 index 00000000..04758fb6 --- /dev/null +++ b/tools/update_copyright.janet @@ -0,0 +1,44 @@ +(def usage (string "usage: janet " (first (dyn :args)) " ")) + +(def ignores [".git"]) +(def exts [".c" ".h" ".janet"]) + +(defn arg [i] + (defn bail [] (print usage) (quit)) + (if-not (= 3 (length (dyn :args))) + (bail) + (if-let [val (get (dyn :args) i)] + val + (bail)))) + +(def oy (arg 1)) +(def ny (arg 2)) +(def od (string "Copyright (c) " oy " Calvin Rose")) +(def nd (string "Copyright (c) " ny " Calvin Rose")) + +(defn join [dir name] + (os/realpath (string dir "/" name))) + +(defn add-children [dir paths] + (loop [name :in (os/dir dir) + :unless (has-value? ignores name)] + (array/push paths (join dir name)))) + +(defn ends-in? [exts s] + (find (fn [ext] (string/has-suffix? ext s)) exts)) + +(defn update-disclaimer [path] + (if-let [_ (ends-in? exts path) + oc (slurp path) + pos (string/find od oc) + nc (string (string/slice oc 0 pos) nd (string/slice oc (+ pos (length od))))] + (spit path nc))) + +(def cwd (os/cwd)) +(def paths (if (string/has-suffix? "janet" cwd) + @[cwd] + @[(join cwd "..")])) +(loop [p :in paths] + (if (= :directory ((os/stat p) :mode)) + (add-children p paths) + (update-disclaimer p))) From 4b5a2a14c03e1fa8a832ef04ea0fb97c03d37c9d Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Tue, 4 Mar 2025 11:24:09 +0900 Subject: [PATCH 2/4] Update year in copyright disclaimer to 2025 --- src/boot/array_test.c | 2 +- src/boot/boot.c | 2 +- src/boot/buffer_test.c | 2 +- src/boot/number_test.c | 2 +- src/boot/system_test.c | 2 +- src/boot/table_test.c | 2 +- src/core/abstract.c | 2 +- src/core/array.c | 2 +- src/core/asm.c | 2 +- src/core/buffer.c | 2 +- src/core/bytecode.c | 2 +- src/core/capi.c | 2 +- src/core/cfuns.c | 2 +- src/core/compile.c | 2 +- src/core/compile.h | 2 +- src/core/corelib.c | 2 +- src/core/debug.c | 2 +- src/core/emit.c | 2 +- src/core/emit.h | 2 +- src/core/features.h | 2 +- src/core/ffi.c | 2 +- src/core/fiber.c | 2 +- src/core/fiber.h | 2 +- src/core/filewatch.c | 2 +- src/core/gc.c | 2 +- src/core/gc.h | 2 +- src/core/inttypes.c | 2 +- src/core/io.c | 2 +- src/core/marsh.c | 2 +- src/core/math.c | 2 +- src/core/net.c | 2 +- src/core/os.c | 2 +- src/core/parse.c | 2 +- src/core/pp.c | 2 +- src/core/regalloc.c | 2 +- src/core/regalloc.h | 2 +- src/core/run.c | 2 +- src/core/specials.c | 2 +- src/core/state.c | 2 +- src/core/state.h | 2 +- src/core/string.c | 2 +- src/core/strtod.c | 2 +- src/core/struct.c | 2 +- src/core/symcache.c | 2 +- src/core/symcache.h | 2 +- src/core/table.c | 2 +- src/core/tuple.c | 2 +- src/core/util.c | 2 +- src/core/util.h | 2 +- src/core/value.c | 2 +- src/core/vector.c | 2 +- src/core/vector.h | 2 +- src/core/vm.c | 2 +- src/core/wrap.c | 2 +- src/include/janet.h | 2 +- src/mainclient/shell.c | 2 +- test/amalg/main.c | 2 +- test/suite-buffer.janet | 2 +- test/suite-bundle.janet | 2 +- test/suite-filewatch.janet | 2 +- tools/symcharsgen.c | 2 +- 61 files changed, 61 insertions(+), 61 deletions(-) diff --git a/src/boot/array_test.c b/src/boot/array_test.c index 39022a3e..e1b545cc 100644 --- a/src/boot/array_test.c +++ b/src/boot/array_test.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/boot/boot.c b/src/boot/boot.c index 0ccc8ddb..df1b180f 100644 --- a/src/boot/boot.c +++ b/src/boot/boot.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/boot/buffer_test.c b/src/boot/buffer_test.c index f53be7b8..0698e3c9 100644 --- a/src/boot/buffer_test.c +++ b/src/boot/buffer_test.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/boot/number_test.c b/src/boot/number_test.c index 4c469ba8..15bd085f 100644 --- a/src/boot/number_test.c +++ b/src/boot/number_test.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/boot/system_test.c b/src/boot/system_test.c index 9e1ced24..4fcd4c66 100644 --- a/src/boot/system_test.c +++ b/src/boot/system_test.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/boot/table_test.c b/src/boot/table_test.c index 121a07e1..1b07a577 100644 --- a/src/boot/table_test.c +++ b/src/boot/table_test.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/abstract.c b/src/core/abstract.c index 6f22c2dd..44f98b60 100644 --- a/src/core/abstract.c +++ b/src/core/abstract.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/array.c b/src/core/array.c index e11ae52f..bda15159 100644 --- a/src/core/array.c +++ b/src/core/array.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/asm.c b/src/core/asm.c index 7ec4292f..4f54623a 100644 --- a/src/core/asm.c +++ b/src/core/asm.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/buffer.c b/src/core/buffer.c index d2e89f8c..06e3f9f9 100644 --- a/src/core/buffer.c +++ b/src/core/buffer.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/bytecode.c b/src/core/bytecode.c index 121811e7..7f1acdac 100644 --- a/src/core/bytecode.c +++ b/src/core/bytecode.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/capi.c b/src/core/capi.c index af6ea582..5a6a2e68 100644 --- a/src/core/capi.c +++ b/src/core/capi.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/cfuns.c b/src/core/cfuns.c index b9c8a95b..960bd502 100644 --- a/src/core/cfuns.c +++ b/src/core/cfuns.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/compile.c b/src/core/compile.c index 4f0b2132..8ab96c40 100644 --- a/src/core/compile.c +++ b/src/core/compile.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/compile.h b/src/core/compile.h index 60a95e95..765efe24 100644 --- a/src/core/compile.h +++ b/src/core/compile.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/corelib.c b/src/core/corelib.c index cf1d9ab5..52d445f3 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/debug.c b/src/core/debug.c index 2cbd6aa3..6e03f78d 100644 --- a/src/core/debug.c +++ b/src/core/debug.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/emit.c b/src/core/emit.c index 59d447a4..47127800 100644 --- a/src/core/emit.c +++ b/src/core/emit.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/emit.h b/src/core/emit.h index 2fdf0d47..64a6a268 100644 --- a/src/core/emit.h +++ b/src/core/emit.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/features.h b/src/core/features.h index 591c2bad..d799880a 100644 --- a/src/core/features.h +++ b/src/core/features.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/ffi.c b/src/core/ffi.c index c95642ad..81483b6a 100644 --- a/src/core/ffi.c +++ b/src/core/ffi.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/fiber.c b/src/core/fiber.c index c1a0b2f6..72d8f2de 100644 --- a/src/core/fiber.c +++ b/src/core/fiber.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/fiber.h b/src/core/fiber.h index a83610e4..8626e89c 100644 --- a/src/core/fiber.h +++ b/src/core/fiber.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/filewatch.c b/src/core/filewatch.c index f515feb0..85f1d266 100644 --- a/src/core/filewatch.c +++ b/src/core/filewatch.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/gc.c b/src/core/gc.c index a9ff0bf7..79e67409 100644 --- a/src/core/gc.c +++ b/src/core/gc.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/gc.h b/src/core/gc.h index c7502b61..37318eee 100644 --- a/src/core/gc.h +++ b/src/core/gc.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/inttypes.c b/src/core/inttypes.c index 855793d7..db0d2b28 100644 --- a/src/core/inttypes.c +++ b/src/core/inttypes.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose & contributors +* Copyright (c) 2025 Calvin Rose & contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/io.c b/src/core/io.c index 0f6703e9..4d45caba 100644 --- a/src/core/io.c +++ b/src/core/io.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/marsh.c b/src/core/marsh.c index 58433095..13b3344b 100644 --- a/src/core/marsh.c +++ b/src/core/marsh.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/math.c b/src/core/math.c index f27b6ffd..400ed7e4 100644 --- a/src/core/math.c +++ b/src/core/math.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/net.c b/src/core/net.c index be338b5f..dd4fae31 100644 --- a/src/core/net.c +++ b/src/core/net.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose and contributors. +* Copyright (c) 2025 Calvin Rose and contributors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/os.c b/src/core/os.c index 3808e3a5..fd141c84 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose and contributors. +* Copyright (c) 2025 Calvin Rose and contributors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/parse.c b/src/core/parse.c index c9177316..5b5ffff8 100644 --- a/src/core/parse.c +++ b/src/core/parse.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/pp.c b/src/core/pp.c index 74022b8f..0c9e81ce 100644 --- a/src/core/pp.c +++ b/src/core/pp.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/regalloc.c b/src/core/regalloc.c index 7bc1d8ca..ef8768eb 100644 --- a/src/core/regalloc.c +++ b/src/core/regalloc.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/regalloc.h b/src/core/regalloc.h index bd1e76e6..ca6c833e 100644 --- a/src/core/regalloc.h +++ b/src/core/regalloc.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/run.c b/src/core/run.c index 9942f07b..0be7f6db 100644 --- a/src/core/run.c +++ b/src/core/run.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/specials.c b/src/core/specials.c index b9d79f68..1a17257e 100644 --- a/src/core/specials.c +++ b/src/core/specials.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/state.c b/src/core/state.c index 003dd796..3d84dcd1 100644 --- a/src/core/state.c +++ b/src/core/state.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/state.h b/src/core/state.h index d121f559..7fb42139 100644 --- a/src/core/state.h +++ b/src/core/state.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/string.c b/src/core/string.c index 6a67482c..24181cbc 100644 --- a/src/core/string.c +++ b/src/core/string.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/strtod.c b/src/core/strtod.c index 33857027..3873a6fd 100644 --- a/src/core/strtod.c +++ b/src/core/strtod.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/struct.c b/src/core/struct.c index 2e4be627..1b1cad7b 100644 --- a/src/core/struct.c +++ b/src/core/struct.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/symcache.c b/src/core/symcache.c index 4d1af72c..68ddf8bf 100644 --- a/src/core/symcache.c +++ b/src/core/symcache.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/symcache.h b/src/core/symcache.h index ea55627e..5e3fbbe0 100644 --- a/src/core/symcache.h +++ b/src/core/symcache.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/table.c b/src/core/table.c index 229d8fa3..910ceba2 100644 --- a/src/core/table.c +++ b/src/core/table.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/tuple.c b/src/core/tuple.c index 97aa483f..7c004751 100644 --- a/src/core/tuple.c +++ b/src/core/tuple.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/util.c b/src/core/util.c index 9ad64c56..db65deb2 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/util.h b/src/core/util.h index a2da921a..3036aa48 100644 --- a/src/core/util.h +++ b/src/core/util.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/value.c b/src/core/value.c index 74486371..b278a1bc 100644 --- a/src/core/value.c +++ b/src/core/value.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/vector.c b/src/core/vector.c index 4fe49572..64f1e780 100644 --- a/src/core/vector.c +++ b/src/core/vector.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/vector.h b/src/core/vector.h index 9cf90387..5aa24c13 100644 --- a/src/core/vector.h +++ b/src/core/vector.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/vm.c b/src/core/vm.c index 4fe179d3..2ae12479 100644 --- a/src/core/vm.c +++ b/src/core/vm.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/core/wrap.c b/src/core/wrap.c index 98214fe0..c4fc1d16 100644 --- a/src/core/wrap.c +++ b/src/core/wrap.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/include/janet.h b/src/include/janet.h index 7d99a1b8..6aa912df 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/src/mainclient/shell.c b/src/mainclient/shell.c index 3b20f629..3d95ee2d 100644 --- a/src/mainclient/shell.c +++ b/src/mainclient/shell.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/test/amalg/main.c b/test/amalg/main.c index 39d89317..3bcc688b 100644 --- a/test/amalg/main.c +++ b/test/amalg/main.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/test/suite-buffer.janet b/test/suite-buffer.janet index e5de3f86..45d077b9 100644 --- a/test/suite-buffer.janet +++ b/test/suite-buffer.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-bundle.janet b/test/suite-bundle.janet index f860c1fd..0d228cc9 100644 --- a/test/suite-bundle.janet +++ b/test/suite-bundle.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-filewatch.janet b/test/suite-filewatch.janet index 90bb82b9..9c3f7404 100644 --- a/test/suite-filewatch.janet +++ b/test/suite-filewatch.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Calvin Rose & contributors +# Copyright (c) 2025 Calvin Rose & contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/tools/symcharsgen.c b/tools/symcharsgen.c index e818bf9e..8193cd5c 100644 --- a/tools/symcharsgen.c +++ b/tools/symcharsgen.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2024 Calvin Rose +* Copyright (c) 2025 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to From 55c10f98bb5987d5e648acb1fb939d0310dcf9ac Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Tue, 4 Mar 2025 11:31:56 +0900 Subject: [PATCH 3/4] Check more file extensions --- tools/update_copyright.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/update_copyright.janet b/tools/update_copyright.janet index 04758fb6..71fdf611 100644 --- a/tools/update_copyright.janet +++ b/tools/update_copyright.janet @@ -1,7 +1,7 @@ (def usage (string "usage: janet " (first (dyn :args)) " ")) (def ignores [".git"]) -(def exts [".c" ".h" ".janet"]) +(def exts ["LICENSE" "Makefile" ".build" ".c" ".h" ".janet"]) (defn arg [i] (defn bail [] (print usage) (quit)) From a34b8ea68f179541c066827b6fe3e824a2347234 Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Tue, 4 Mar 2025 11:32:15 +0900 Subject: [PATCH 4/4] Update older dates to 2025 --- LICENSE | 2 +- Makefile | 2 +- meson.build | 2 +- test/suite-array.janet | 2 +- test/suite-asm.janet | 2 +- test/suite-boot.janet | 2 +- test/suite-capi.janet | 2 +- test/suite-cfuns.janet | 2 +- test/suite-compile.janet | 2 +- test/suite-corelib.janet | 2 +- test/suite-debug.janet | 2 +- test/suite-ffi.janet | 2 +- test/suite-inttypes.janet | 2 +- test/suite-io.janet | 2 +- test/suite-marsh.janet | 2 +- test/suite-math.janet | 2 +- test/suite-os.janet | 2 +- test/suite-parse.janet | 2 +- test/suite-peg.janet | 2 +- test/suite-pp.janet | 2 +- test/suite-specials.janet | 2 +- test/suite-string.janet | 2 +- test/suite-strtod.janet | 2 +- test/suite-struct.janet | 2 +- test/suite-symcache.janet | 2 +- test/suite-table.janet | 2 +- test/suite-tuple.janet | 2 +- test/suite-unknown.janet | 2 +- test/suite-value.janet | 2 +- test/suite-vm.janet | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/LICENSE b/LICENSE index 440e8c30..ceaa6a0e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2023 Calvin Rose and contributors +Copyright (c) 2025 Calvin Rose and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/Makefile b/Makefile index f43c9dbc..a820d913 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/meson.build b/meson.build index d06102e4..30591166 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Calvin Rose and contributors +# Copyright (c) 2025 Calvin Rose and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-array.janet b/test/suite-array.janet index f0fecbaa..13e2407d 100644 --- a/test/suite-array.janet +++ b/test/suite-array.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-asm.janet b/test/suite-asm.janet index e435094d..075fe4e1 100644 --- a/test/suite-asm.janet +++ b/test/suite-asm.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-boot.janet b/test/suite-boot.janet index b8f22625..59c9f211 100644 --- a/test/suite-boot.janet +++ b/test/suite-boot.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-capi.janet b/test/suite-capi.janet index 52f05433..dfa86fc0 100644 --- a/test/suite-capi.janet +++ b/test/suite-capi.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-cfuns.janet b/test/suite-cfuns.janet index d06323bf..3e36c3f7 100644 --- a/test/suite-cfuns.janet +++ b/test/suite-cfuns.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-compile.janet b/test/suite-compile.janet index e52c4057..204a91f8 100644 --- a/test/suite-compile.janet +++ b/test/suite-compile.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-corelib.janet b/test/suite-corelib.janet index 119ec768..d2a5d4d5 100644 --- a/test/suite-corelib.janet +++ b/test/suite-corelib.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-debug.janet b/test/suite-debug.janet index 3ed87e46..e0d8793d 100644 --- a/test/suite-debug.janet +++ b/test/suite-debug.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-ffi.janet b/test/suite-ffi.janet index 6305651e..3d0a4d7e 100644 --- a/test/suite-ffi.janet +++ b/test/suite-ffi.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose & contributors +# Copyright (c) 2025 Calvin Rose & contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-inttypes.janet b/test/suite-inttypes.janet index 67272130..91b38590 100644 --- a/test/suite-inttypes.janet +++ b/test/suite-inttypes.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose & contributors +# Copyright (c) 2025 Calvin Rose & contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-io.janet b/test/suite-io.janet index 826ae755..726b7aa4 100644 --- a/test/suite-io.janet +++ b/test/suite-io.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose & contributors +# Copyright (c) 2025 Calvin Rose & contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-marsh.janet b/test/suite-marsh.janet index 1bcfb0d5..9defbc55 100644 --- a/test/suite-marsh.janet +++ b/test/suite-marsh.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-math.janet b/test/suite-math.janet index 235ecc43..58b4ff18 100644 --- a/test/suite-math.janet +++ b/test/suite-math.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-os.janet b/test/suite-os.janet index c4d2bda6..40e62bfd 100644 --- a/test/suite-os.janet +++ b/test/suite-os.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-parse.janet b/test/suite-parse.janet index 3cf8b595..1cb3c71a 100644 --- a/test/suite-parse.janet +++ b/test/suite-parse.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-peg.janet b/test/suite-peg.janet index 59e9353b..cf7e86d6 100644 --- a/test/suite-peg.janet +++ b/test/suite-peg.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-pp.janet b/test/suite-pp.janet index 153cff09..4030d64f 100644 --- a/test/suite-pp.janet +++ b/test/suite-pp.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose & contributors +# Copyright (c) 2025 Calvin Rose & contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-specials.janet b/test/suite-specials.janet index b6fdb078..edabf8c3 100644 --- a/test/suite-specials.janet +++ b/test/suite-specials.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-string.janet b/test/suite-string.janet index 43774f2d..49c67120 100644 --- a/test/suite-string.janet +++ b/test/suite-string.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-strtod.janet b/test/suite-strtod.janet index 888123fe..d14985b9 100644 --- a/test/suite-strtod.janet +++ b/test/suite-strtod.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-struct.janet b/test/suite-struct.janet index 32f6e9b4..3178a9e2 100644 --- a/test/suite-struct.janet +++ b/test/suite-struct.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-symcache.janet b/test/suite-symcache.janet index 8ad6d3a7..29b6c541 100644 --- a/test/suite-symcache.janet +++ b/test/suite-symcache.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-table.janet b/test/suite-table.janet index 4234194b..4f954778 100644 --- a/test/suite-table.janet +++ b/test/suite-table.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-tuple.janet b/test/suite-tuple.janet index 6a74e9ec..f2010080 100644 --- a/test/suite-tuple.janet +++ b/test/suite-tuple.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-unknown.janet b/test/suite-unknown.janet index 9f034612..f35d3ab4 100644 --- a/test/suite-unknown.janet +++ b/test/suite-unknown.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-value.janet b/test/suite-value.janet index bbd443a6..16a6d455 100644 --- a/test/suite-value.janet +++ b/test/suite-value.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/test/suite-vm.janet b/test/suite-vm.janet index 5fc375a2..e1019379 100644 --- a/test/suite-vm.janet +++ b/test/suite-vm.janet @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Calvin Rose +# Copyright (c) 2025 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to