comparison makefiles/scripts/addNotices.sh @ 8330:9c60860b1812

8001931: The new build system whitespace cleanup Reviewed-by: tbell, simonis, erikj
author ihse
date Thu, 10 Oct 2013 15:06:21 +0200
parents cea72c2bf071
children
comparison
equal deleted inserted replaced
1:f6b0c9339238 2:dd78a9cbe361
23 # or visit www.oracle.com if you need additional information or have any 23 # or visit www.oracle.com if you need additional information or have any
24 # questions. 24 # questions.
25 # 25 #
26 26
27 # Parse the first contiguous comment block in this script and generate 27 # Parse the first contiguous comment block in this script and generate
28 # a java comment block. If this script is invoked with a copyright 28 # a java comment block. If this script is invoked with a copyright
29 # year/year range, the java comment block will contain a Sun copyright. 29 # year/year range, the java comment block will contain a Sun copyright.
30 30
31 COPYRIGHT_YEARS="$1" 31 COPYRIGHT_YEARS="$1"
32 32
33 cat <<__END__ 33 cat <<__END__
39 * Copyright (c) $COPYRIGHT_YEARS Oracle and/or its affiliates. All rights reserved. 39 * Copyright (c) $COPYRIGHT_YEARS Oracle and/or its affiliates. All rights reserved.
40 __END__ 40 __END__
41 fi 41 fi
42 42
43 $NAWK ' /^#.*Copyright.*Oracle/ { next } 43 $NAWK ' /^#.*Copyright.*Oracle/ { next }
44 /^#([^!]|$)/ { sub(/^#/, " *"); print } 44 /^#([^!]|$)/ { sub(/^#/, " *"); print }
45 /^$/ { print " */"; exit } ' $0 45 /^$/ { print " */"; exit } ' $0