From c4d57fd411635bd11ff7be63cb73f72c892df21d Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Thu, 30 Jun 2005 23:36:22 +0000 Subject: [PATCH] ICU-4449 Fix this script so that it will work with the new packaging scheme. X-SVN-Rev: 18105 --- icu4c/as_is/os400/unpax-icu.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/icu4c/as_is/os400/unpax-icu.sh b/icu4c/as_is/os400/unpax-icu.sh index eb939fcc34..cbf1821591 100755 --- a/icu4c/as_is/os400/unpax-icu.sh +++ b/icu4c/as_is/os400/unpax-icu.sh @@ -1,5 +1,5 @@ #!/usr/bin/qsh -# Copyright (C) 2000-2004, International Business Machines +# Copyright (C) 2000-2005, International Business Machines # Corporation and others. All Rights Reserved. # # Authors: @@ -17,7 +17,7 @@ #binary_suffixes='ico ICO bmp BMP jpg JPG gif GIF brk BRK' #ICU specific binary files binary_suffixes='brk BRK bin BIN res RES cnv CNV dat DAT icu ICU spp SPP' -data_files='icu/source/data/brkitr/* icu/source/data/locales/* icu/source/data/coll/* icu/source/data/rbnf/* icu/source/data/mappings/* icu/source/data/misc/* icu/source/data/translit/* icu/source/data/unidata/* icu/source/test/testdata/*' +data_directories='icu/source/data/brkitr/ icu/source/data/locales/ icu/source/data/coll/ icu/source/data/rbnf/ icu/source/data/mappings/ icu/source/data/misc/ icu/source/data/translit/ icu/source/data/unidata/ icu/source/test/testdata/' usage() { @@ -36,6 +36,12 @@ if [ ! -r $1 ]; then fi # set up a few variables +for directory in $data_directories; do + if [ -d $directory ]; then + data_files="$data_files $directory*" + fi +done + echo "" echo "Extracting from $1 ..." echo "" @@ -91,7 +97,6 @@ for file in `find ./icu \( -name \*.txt -print \)`; do cut -f2-4 -d ' '|\ tr 'A-Z' 'a-z'`; # echo "bom8 is" $bom8 "for" $file -# bom8=`head -c 3 $file|od -t x1|head -n 1|cut -d ' ' -f2-4`; #Find a converted UTF-8 BOM if [ "$bom8" = "057 08b 0ab" -o "$bom8" = "57 8b ab" ] then