make/jdk/src/classes/build/tools/spp/Spp.java
changeset 53648 6d37b8ec36fa
parent 53110 50677f43ac3d
equal deleted inserted replaced
53647:82c95d4b61f0 53648:6d37b8ec36fa
     1 /*
     1 /*
     2  * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    32 
    32 
    33 /*
    33 /*
    34  * Spp: A simple regex-based stream preprocessor based on Mark Reinhold's
    34  * Spp: A simple regex-based stream preprocessor based on Mark Reinhold's
    35  *      sed-based spp.sh
    35  *      sed-based spp.sh
    36  *
    36  *
    37  * Usage: java build.tools.spp.Spp [-be] [-nel] [-Kkey] -Dvar=value ... <in >out
    37  * Usage:
       
    38  * java build.tools.spp.Spp [-be] [-nel] [-Kkey] -Dvar=value ... -iin -oout
    38  *
    39  *
    39  * If -nel is declared then empty lines will not be substituted for lines of
    40  * If -nel is declared then empty lines will not be substituted for lines of
    40  * text in the template that do not appear in the output.
    41  * text in the template that do not appear in the output.
    41  *
    42  *
    42  *   Meaningful only at beginning of line, works with any number of keys:
    43  *   Meaningful only at beginning of line, works with any number of keys: