Skip to content

Commit 0c5873f

Browse files
committed
ICU-12800 svn reorg, copy recent release tags to the top level tags directory.
X-SVN-Rev: 39497
0 parents  commit 0c5873f

File tree

8,231 files changed

+6760317
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,231 files changed

+6760317
-0
lines changed

.gitattributes

Lines changed: 629 additions & 0 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 986 additions & 0 deletions
Large diffs are not rendered by default.

icu4c/APIChangeReport.html

Lines changed: 676 additions & 0 deletions
Large diffs are not rendered by default.

icu4c/LICENSE

Lines changed: 393 additions & 0 deletions
Large diffs are not rendered by default.

icu4c/as_is/bomlist.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/usr/bin/python
2+
3+
# Copyright (C) 2011 IBM Corporation and Others. All Rights Reserved.
4+
#
5+
# run in icu/
6+
# will create file icu/as_is/bomlist.txt
7+
#
8+
# Usage:
9+
# ( python as_is/bomlist.py > as_is/bomlist.txt ) || rm -f as_is/bomlist.txt
10+
11+
import os
12+
import codecs
13+
14+
tree = os.walk(".")
15+
16+
nots=0
17+
notutf8=0
18+
noprops=0
19+
utf8=0
20+
fixed=0
21+
tfiles=0
22+
bom=codecs.BOM_UTF8
23+
24+
25+
for ent in tree:
26+
(path,dirs,files) = ent
27+
if(path.find("/.svn") != -1):
28+
continue
29+
for file in files:
30+
tfiles=tfiles+1
31+
fp = (path + "/" + file)
32+
if not os.path.isfile(fp):
33+
continue
34+
f = open(fp, 'rb')
35+
bytes=f.read(3)
36+
if bytes and (bytes == bom):
37+
print 'icu/'+fp[2::]
38+
f.close()

icu4c/as_is/os390/unpax-icu.sh

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
#!/bin/sh
2+
# Copyright (C) 2001-2010, International Business Machines
3+
# Corporation and others. All Rights Reserved.
4+
#
5+
# Authors:
6+
# Ami Fixler
7+
# Steven R. Loomis
8+
# George Rhoten
9+
#
10+
# Shell script to unpax ICU and convert the files to an EBCDIC codepage.
11+
# After extracting to EBCDIC, binary files are re-extracted without the
12+
# EBCDIC conversion, thus restoring them to original codepage.
13+
#
14+
# Set the following variable to the list of binary file suffixes (extensions)
15+
16+
#binary_suffixes='ico ICO bmp BMP jpg JPG gif GIF brk BRK'
17+
#ICU specific binary files
18+
binary_suffixes='brk BRK bin BIN res RES cnv CNV dat DAT icu ICU spp SPP xml XML nrm NRM'
19+
20+
usage()
21+
{
22+
echo "Enter archive filename as a parameter: $0 icu-archive.tar"
23+
}
24+
# first make sure we at least one arg and it's a file we can read
25+
if [ $# -eq 0 ]; then
26+
usage
27+
exit
28+
fi
29+
tar_file=$1
30+
if [ ! -r $tar_file ]; then
31+
echo "$tar_file does not exist or cannot be read."
32+
usage
33+
exit
34+
fi
35+
36+
echo ""
37+
echo "Extracting from $tar_file ..."
38+
echo ""
39+
# extract files while converting them to EBCDIC
40+
pax -rvf $tar_file -o to=IBM-1047,from=ISO8859-1 -o setfiletag
41+
42+
echo ""
43+
echo "Determining binary files ..."
44+
echo ""
45+
46+
# When building in ASCII mode, text files are converted as ASCII
47+
if [ "${ICU_ENABLE_ASCII_STRINGS}" -eq 1 ]; then
48+
binary_suffixes="$binary_suffixes txt TXT ucm UCM"
49+
else
50+
for file in `find ./icu \( -name \*.txt -print \) | sed -e 's/^\.\///'`; do
51+
bom8=`head -c 3 $file|\
52+
od -t x1|\
53+
head -n 1|\
54+
sed 's/ */ /g'|\
55+
cut -f2-4 -d ' '|\
56+
tr 'A-Z' 'a-z'`;
57+
#Find a converted UTF-8 BOM
58+
if [ "$bom8" = "57 8b ab" ]
59+
then
60+
binary_files="$binary_files $file";
61+
fi
62+
done
63+
fi
64+
65+
for i in $(pax -f $tar_file 2>/dev/null)
66+
do
67+
case $i in
68+
*/) ;; # then this entry is a directory
69+
*.*) # then this entry has a dot in the filename
70+
for j in $binary_suffixes
71+
do
72+
# We substitute the suffix more than once
73+
# to handle files like NormalizationTest-3.2.0.txt
74+
suf=${i#*.*}
75+
suf=${suf#*.*}
76+
suf=${suf#*.*}
77+
if [ "$suf" = "$j" ]
78+
then
79+
binary_files="$binary_files $i"
80+
break
81+
fi
82+
done
83+
;;
84+
*) ;; # then this entry does not have a dot in it
85+
esac
86+
done
87+
88+
# now see if a re-extract of binary files is necessary
89+
if [ ${#binary_files} -eq 0 ]; then
90+
echo ""
91+
echo "There are no binary files to restore."
92+
else
93+
echo "Restoring binary files ..."
94+
echo ""
95+
rm $binary_files
96+
pax -rvf $tar_file $binary_files
97+
# Tag the files as binary for proper interaction with the _BPXK_AUTOCVT
98+
# environment setting
99+
chtag -b $binary_files
100+
fi
101+
echo ""
102+
echo "$0 has completed extracting ICU from $tar_file."

icu4c/as_is/os400/bldiculd.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
# /* Copyright (C) 2011-2012 IBM Corporation and Others. All Rights Reserved */
3+
icc -o iculd iculd.c
4+
icc -o cxxfilt cxxfilt.cpp
5+
6+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright (C) 2006-2011, International Business Machines Corporation
2+
# and others. All Rights Reserved.
3+
#
4+
# Use "test -x" instead of "test -f" most of the time.
5+
# due to how executables are created in a different file system.
6+
s/as_executable_p="test -f"/as_executable_p="test -x"/g
7+
s/test -f "$ac_file"/test -x "$ac_file"/g
8+
s/test -f $ac_dir\/install-sh/test -x $ac_dir\/install-sh/g
9+
s/test -f $ac_dir\/install.sh/test -x $ac_dir\/install.sh/g
10+
s/test -f $ac_dir\/shtool/test -x $ac_dir\/shtool/g
11+
# Use the more efficient del instead of rm command.
12+
s/rm[ ]*-r[ ]*-f/del -f/g
13+
s/rm[ ]*-f[ ]*-r/del -f/g
14+
s/rm[ ]*-rf/del -f/g
15+
s/rm[ ]*-fr/del -f/g
16+
s/rm[ ]*-f/del -f/g
17+
##don't clean up some awks for debugging
18+
#s/[ ]*del -f [^ ]*.awk/#&/
19+
# Borne shell isn't always available on i5/OS
20+
s/\/bin\/sh/\/usr\/bin\/qsh/g
21+
# no diff in qsh the equivalent is cmp
22+
s/ diff / cmp -s /g
23+
## srl
24+
# trouble w/ redirects.
25+
s% >&$3%%g
26+
s% >&$4% >$4%g
27+
s%^ac_cr=%# AWK reads ASCII, not EBCDIC\
28+
touch -C 819 $tmp/defines.awk $tmp/subs.awk $tmp/subs1.awk conf$$subs.awk\
29+
\
30+
&%
31+
##OBSOLETE
32+
#(REPLACED BY CPP in runConfigureICU) Use -c qpponly instead of -E to enable the preprocessor on the compiler
33+
#s/\$CC -E/\$CC -c -qpponly/g

icu4c/as_is/os400/cxxfilt.cpp

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* Copyright (C) 2012 IBM Corporation and Others. All Rights Reserved */
2+
3+
#include <stdio.h>
4+
#include <demangle.h>
5+
6+
void showSym(char *str) {
7+
char *rest;
8+
struct Name *name = Demangle(str, rest); // "f__1XFi"
9+
10+
printf("# '%s'\n", str);
11+
if(*rest) printf("\trest: '%s'\n", rest);
12+
if(name->Kind() == MemberFunction) {
13+
//((MemberFunctionName *) name)->Scope()->Text() is "X"
14+
//((MemberFunctionName *) name)->RootName() is "f"
15+
//((MemberFunctionName *) name)->Text() is "X::f(int)"
16+
printf("\t=> %s\n", ((MemberFunctionName *) name)->Text());
17+
} else {
18+
printf("\t(not MemberFunction)\n");
19+
}
20+
}
21+
22+
23+
24+
25+
26+
int main(int argc, /*const*/ char *argv[]) {
27+
if(argc>1) {
28+
for(int i=1;i<argc;i++) {
29+
showSym(argv[i]);
30+
}
31+
} else {
32+
printf("Usage: %s <symbol> ...\n", argv[0]);
33+
}
34+
35+
36+
37+
}

icu4c/as_is/os400/fixup-icu.sh

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#!/usr/bin/qsh
2+
# Copyright (C) 2000-2011, International Business Machines
3+
# Corporation and others. All Rights Reserved.
4+
#
5+
# Authors:
6+
# Ami Fixler
7+
# Barry Novinger
8+
# Steven R. Loomis
9+
# George Rhoten
10+
# Jason Spieth
11+
#
12+
#
13+
# This script detects if any UTF-8 files were incorrectly converted to EBCDIC, and
14+
# converts them back.
15+
16+
if [ -z "$QSH_VERSION" ];
17+
then
18+
QSH=0
19+
echo "QSH not detected (QSH_VERSION not set) - just testing."
20+
else
21+
QSH=1
22+
#echo "QSH version $QSH_VERSION"
23+
fi
24+
export QSH
25+
26+
tar_file=$1
27+
echo ""
28+
echo "Determining binary files by BOM ..."
29+
echo ""
30+
bin_count=0
31+
binary_files=""
32+
# Process BOMs
33+
for file in `find ./icu/source/data/unidata \( -name \*.txt -print \)`; do
34+
bom8=`od -t x1 -N 3 $file|\
35+
head -n 1|\
36+
cut -c10-18`;
37+
#Find a converted UTF-8 BOM
38+
echo "file $file bom /${bom8}/"
39+
if [ "$bom8" = "57 8b ab" ]
40+
then
41+
file="`echo $file | cut -d / -f2-`"
42+
echo "converting ${file}"
43+
if [ `echo $binary_files | wc -w` -lt 200 ]
44+
then
45+
bin_count=`expr $bin_count + 1`
46+
binary_files="$binary_files $file";
47+
else
48+
echo "Restoring binary files by BOM ($bin_count)..."
49+
rm $binary_files;
50+
pax -C 819 -rvf $tar_file $binary_files;
51+
echo "Determining binary files by BOM ($bin_count)..."
52+
binary_files="$file";
53+
bin_count=`expr $bin_count + 1`
54+
fi
55+
fi
56+
done
57+
if [ `echo $binary_files | wc -w` -gt 0 ]
58+
then
59+
echo restoring
60+
rm $binary_files
61+
pax -C 819 -rvf $tar_file $binary_files
62+
fi
63+
64+
65+

0 commit comments

Comments
 (0)