Thu, 28 Jan 2016 12:39:39 -0800
Added tag jdk8u74-b01 for changeset ae6c74c1197a
lagergren@1036 | 1 | #!/bin/bash |
lagergren@1036 | 2 | # |
lagergren@1036 | 3 | # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
lagergren@1036 | 4 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
lagergren@1036 | 5 | # |
lagergren@1036 | 6 | # This code is free software; you can redistribute it and/or modify it |
lagergren@1036 | 7 | # under the terms of the GNU General Public License version 2 only, as |
lagergren@1036 | 8 | # published by the Free Software Foundation. |
lagergren@1036 | 9 | # |
lagergren@1036 | 10 | # This code is distributed in the hope that it will be useful, but WITHOUT |
lagergren@1036 | 11 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
lagergren@1036 | 12 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
lagergren@1036 | 13 | # version 2 for more details (a copy is included in the LICENSE file that |
lagergren@1036 | 14 | # accompanied this code). |
lagergren@1036 | 15 | # |
lagergren@1036 | 16 | # You should have received a copy of the GNU General Public License version |
lagergren@1036 | 17 | # 2 along with this work; if not, write to the Free Software Foundation, |
lagergren@1036 | 18 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
lagergren@1036 | 19 | # |
lagergren@1036 | 20 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
lagergren@1036 | 21 | # or visit www.oracle.com if you need additional information or have any |
lagergren@1036 | 22 | # questions. |
lagergren@1036 | 23 | # |
lagergren@1036 | 24 | |
lagergren@1036 | 25 | fix() { |
lagergren@1036 | 26 | #convert tabs to spaces |
lagergren@1036 | 27 | find . -name $1 -exec sed -i "" 's/ / /g' {} \; |
lagergren@1036 | 28 | #remove trailing whitespace |
lagergren@1036 | 29 | find . -name $1 -exec sed -i "" 's/[ ]*$//' \{} \; |
lagergren@1036 | 30 | } |
lagergren@1036 | 31 | |
lagergren@1036 | 32 | if [ ! -z $1 ]; then |
lagergren@1036 | 33 | fix $1; |
lagergren@1036 | 34 | else |
lagergren@1036 | 35 | fix "*.java" |
lagergren@1036 | 36 | fix "*.js" |
lagergren@1036 | 37 | fi |