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
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git]
/
tools
/
internal
/
update_copyright_header
diff --git
a/tools/internal/update_copyright_header
b/tools/internal/update_copyright_header
index
e42c53a
..
99da7f5
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
-2018
. 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
@@
-27,8
+27,6
@@
fi
printf 'Using template: %s\n' "$template"
printf 'Using template: %s\n' "$template"
-now=$(date +%Y)
-
get_dates() {
local file=$1
local date
get_dates() {
local file=$1
local date
@@
-50,7
+48,6
@@
get_dates() {
esac
done
git log --format=%ad "$file" | cut -d\ -f5 | uniq
esac
done
git log --format=%ad "$file" | cut -d\ -f5 | uniq
- echo $now
}
format_dates() {
}
format_dates() {
@@
-92,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
@@
-131,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