hotspot/make/aix/makefiles/adjust-mflags.sh
changeset 23195 f504fb000847
parent 22830 df1bb606b2ca
equal deleted inserted replaced
23194:e60d7409415b 23195:f504fb000847
     1 #! /bin/sh
     1 #! /bin/sh
     2 #
     2 #
     3 # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     3 # Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 #
     5 #
     6 # This code is free software; you can redistribute it and/or modify it
     6 # This code is free software; you can redistribute it and/or modify it
     7 # under the terms of the GNU General Public License version 2 only, as
     7 # under the terms of the GNU General Public License version 2 only, as
     8 # published by the Free Software Foundation.
     8 # published by the Free Software Foundation.
    62 # Normalize any -jN argument to the form " -j${HBJ}"
    62 # Normalize any -jN argument to the form " -j${HBJ}"
    63 MFLAGS=`
    63 MFLAGS=`
    64 	echo "$MFLAGS" \
    64 	echo "$MFLAGS" \
    65 	| sed '
    65 	| sed '
    66 		s/^-/ -/
    66 		s/^-/ -/
    67 		s/ -\([^ 	][^ 	]*\)j/ -\1 -j/
    67 		s/ -\([^ 	I][^ 	I]*\)j/ -\1 -j/
    68 		s/ -j[0-9][0-9]*/ -j/
    68 		s/ -j[0-9][0-9]*/ -j/
    69 		s/ -j\([^ 	]\)/ -j -\1/
    69 		s/ -j\([^ 	]\)/ -j -\1/
    70 		s/ -j/ -j'${HOTSPOT_BUILD_JOBS:-${default_build_jobs}}'/
    70 		s/ -j/ -j'${HOTSPOT_BUILD_JOBS:-${default_build_jobs}}'/
    71 	' `
    71 	' `
    72 
    72