A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[sonar] make signals private
[simgrid.git]
/
tools
/
internal
/
update_copyright_header
diff --git
a/tools/internal/update_copyright_header
b/tools/internal/update_copyright_header
index 238f200662a51d3b4bad80ccb253cefedf685fb5..7f0f37893585091c932cd970f9f54da54590c598 100755
(executable)
--- a/
tools/internal/update_copyright_header
+++ b/
tools/internal/update_copyright_header
@@
-1,6
+1,6
@@
-#!/
bin/
bash
+#!/
usr/bin/env
bash
-# Copyright (c) 2014. The SimGrid Team.
+# Copyright (c) 2014
-2023
. The SimGrid Team.
# All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# All rights reserved.
# This program is free software; you can redistribute it and/or modify it
@@
-35,7
+35,7
@@
get_dates() {
s/[, ]\+/\n/g
p
}' "$file" \
s/[, ]\+/\n/g
p
}' "$file" \
- | while read date; do
+ | while read
-r
date; do
case "$date" in
"")
;;
case "$date" in
"")
;;
@@
-54,9
+54,9
@@
format_dates() {
local first
local last
local next
local first
local last
local next
- read first
+ read
-r
first
last=$first
last=$first
- while read next; do
+ while read
-r
next; do
if [ $next -eq $((last + 1)) ]; then
last=$next
else
if [ $next -eq $((last + 1)) ]; then
last=$next
else
@@
-89,7
+89,7
@@
for file; do
continue
fi
continue
fi
- if grep -q "Copyright.*SimGrid" $file ; then
+ if grep -q "Copyright.*SimGrid" $file ; then
if head -n 1 "$file" | grep -q '^#!'; then
script=1
else
if head -n 1 "$file" | grep -q '^#!'; then
script=1
else
@@
-128,7
+128,7
@@
for file; do
cat "$tmp_head" "$tmp_copy" "$tmp_foot" > $file
else
echo "Pass: there is no SimGrid Copyright header."
cat "$tmp_head" "$tmp_copy" "$tmp_foot" > $file
else
echo "Pass: there is no SimGrid Copyright header."
- fi ; #
+ fi ; #
done
cat <<EOF
done
cat <<EOF