common/bin/unshuffle_patch.sh
author katleman
Wed, 17 Sep 2014 22:56:07 -0700
changeset 26593 97d3a8394ab5
parent 25854 98ce0879ab4c
child 26674 b002f9eb2b5e
permissions -rw-r--r--
Added tag jdk9-b31 for changeset fe7c921b71f0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     1
#!/bin/sh
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     2
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     3
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     4
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     5
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     6
# This code is free software; you can redistribute it and/or modify it
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     7
# under the terms of the GNU General Public License version 2 only, as
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     8
# published by the Free Software Foundation.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     9
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    14
# accompanied this code).
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    15
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    19
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    22
# questions.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    23
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    24
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    25
# Script for updating a patch file as per the shuffled/unshuffled source location.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    26
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    27
usage() {
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    28
      echo "Usage: $0 [-h|--help] [-v|--verbose] <repo> <input_patch> <output_patch>"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    29
      echo "where:"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    30
      echo "  <repo>          is one of: corba, jaxp, jaxws, jdk, langtools, nashorn"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    31
      echo "                  [Note: patches from other repos do not need updating]"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    32
      echo "  <input_patch>   is the input patch file, that needs shuffling/unshuffling"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    33
      echo "  <output_patch>  is the updated patch file "
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    34
      echo " "
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    35
      exit 1
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    36
}
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    37
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    38
SCRIPT_DIR=`pwd`/`dirname $0`
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    39
UNSHUFFLE_LIST=$SCRIPT_DIR"/unshuffle_list.txt"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    40
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    41
if [ ! -f "$UNSHUFFLE_LIST" ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    42
  echo "FATAL: cannot find $UNSHUFFLE_LIST"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    43
  exit 1
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    44
fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    45
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    46
vflag="false"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    47
while [ $# -gt 0 ]
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    48
do
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    49
  case $1 in
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    50
    -h | --help )
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    51
      usage
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    52
      ;;
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    53
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    54
    -v | --verbose )
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    55
      vflag="true"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    56
      ;;
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    57
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    58
    -*)  # bad option
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    59
      usage
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    60
      ;;
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    61
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    62
     * )  # non option
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    63
      break
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    64
      ;;
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    65
  esac
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    66
  shift
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    67
done
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    68
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    69
# Make sure we have the right number of arguments
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    70
if [ ! $# -eq 3 ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    71
  echo "ERROR: Invalid number of arguments."
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    72
  usage
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    73
fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    74
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    75
# Check the given repo
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    76
repos="corba jaxp jaxws jdk langtools nashorn"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    77
repo="$1"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    78
found="false"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    79
for r in $repos ; do
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    80
  if [ $repo = "$r" ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    81
    found="true"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    82
    break;
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    83
  fi 
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    84
done
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    85
if [ $found = "false" ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    86
  echo "ERROR: Unknown repo: $repo. Should be one of [$repos]."
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    87
  usage
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    88
fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    89
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    90
# Check given input/output files
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    91
input="$2"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    92
output="$3"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    93
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    94
if [ ! -f $input ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    95
  echo "ERROR: Cannot find input patch file: $input"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    96
  exit 1
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    97
fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    98
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    99
if [ -f $output ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   100
  echo "ERROR: Output patch already exists: $output"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   101
  exit 1
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   102
fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   103
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   104
what=""  ## shuffle or unshuffle
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   105
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   106
verbose() {
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   107
  if [ ${vflag} = "true" ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   108
    echo "$@"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   109
  fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   110
}
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   111
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   112
unshuffle() {
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   113
  line=$@
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   114
  verbose "Attempting to rewrite: \"$line\""
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   115
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   116
  # Retrieve the file name
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   117
  path=
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   118
  if echo "$line" | egrep '^diff' > /dev/null ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   119
    if ! echo "$line" | egrep '\-\-git' > /dev/null ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   120
      echo "ERROR: Only git patches supported. Please use 'hg export --git ...'."
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   121
      exit 1
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   122
    fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   123
    path="`echo "$line" | sed -e s@'diff --git a/'@@ -e s@' b/.*$'@@`"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   124
  elif echo "$line" | egrep '^\-\-\-' > /dev/null ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   125
    path="`echo "$line" | sed -e s@'--- a/'@@`"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   126
  elif echo "$line" | egrep '^\+\+\+' > /dev/null ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   127
    path="`echo "$line" | sed s@'+++ b/'@@`"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   128
  fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   129
  verbose "Extracted path: \"$path\""
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   130
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   131
  # Only source can be shuffled, or unshuffled
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   132
  if ! echo "$path" | egrep '^src/.*' > /dev/null ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   133
    verbose "Not a src path, skipping."
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   134
    echo "$line" >> $output
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   135
    return
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   136
  fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   137
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   138
  # Shuffle or unshuffle?
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   139
  if [ "${what}" = "" ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   140
    if echo "$path" | egrep '^src/java\..*|^src/jdk\..*' > /dev/null ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   141
      what="unshuffle"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   142
    else
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   143
      what="shuffle"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   144
    fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   145
    verbose "Shuffle or unshuffle: $what"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   146
  fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   147
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   148
  # Find the most specific matches in the shuffle list
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   149
  matches=
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   150
  matchpath="$repo"/"$path"/x
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   151
  while [ "$matchpath" != "" ] ; do
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   152
    matchpath="`echo $matchpath | sed s@'\(.*\)/.*$'@'\1'@`"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   153
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   154
    if [ "${what}" =  "shuffle" ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   155
      pattern=": $matchpath$"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   156
    else
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   157
      pattern="^$matchpath :"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   158
    fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   159
    verbose "Attempting to find \"$matchpath\""
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   160
    matches=`egrep "$pattern" "$UNSHUFFLE_LIST"`
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   161
    if ! [ "x${matches}" = "x" ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   162
      verbose "Got matches: [$matches]"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   163
      break;
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   164
    fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   165
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   166
    if ! echo "$matchpath" | egrep '.*/.*' > /dev/null ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   167
      break;
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   168
    fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   169
  done
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   170
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   171
  # Rewrite the line, if we have a match
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   172
  if ! [ "x${matches}" = "x" ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   173
    shuffled="`echo "$matches" | sed -e s@' : .*'@@g -e s@'^[a-z]*\/'@@`"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   174
    unshuffled="`echo "$matches" | sed -e s@'.* : '@@g -e s@'^[a-z]*\/'@@`"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   175
    if [ "${what}" =  "shuffle" ] ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   176
      newline="`echo "$line" | sed -e s@"$unshuffled"@"$shuffled"@g`"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   177
    else
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   178
      newline="`echo "$line" | sed -e s@"$shuffled"@"$unshuffled"@g`"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   179
    fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   180
    verbose "Rewriting to \"$newline\""
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   181
    echo "$newline" >> $output
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   182
  else
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   183
    echo "WARNING: no match found for $path"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   184
    echo "$line" >> $output
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   185
  fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   186
}
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   187
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   188
while IFS= read -r line
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   189
do
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   190
  if echo "$line" | egrep '^diff|^\-\-\-|^\+\+\+' > /dev/null ; then
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   191
    unshuffle "$line"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   192
  else
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   193
    printf "%s\n" "$line" >> $output
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   194
  fi
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   195
done < "$input"
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
   196