src/lib/iconv/euro/utils/gentbl/rename
author hnhn
Fri, 16 Apr 2010 15:15:04 +0200
changeset 470 15a9be57131d
parent 457 80ebd123d7b9
permissions -rwxr-xr-x
6935613 Lacking sources for several iconv binary tables
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
457
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
     1
#!/bin/bash
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
     2
#
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
     3
# CDDL HEADER START
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
     4
#
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
     5
# The contents of this file are subject to the terms of the
470
15a9be57131d 6935613 Lacking sources for several iconv binary tables
hnhn
parents: 457
diff changeset
     6
# Common Development and Distribution License (the "License").
457
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
     7
# You may not use this file except in compliance with the License.
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
     8
#
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
     9
# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    10
# or http://www.opensolaris.org/os/licensing.
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    11
# See the License for the specific language governing permissions
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    12
# and limitations under the License.
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    13
#
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    14
# When distributing Covered Code, include this CDDL HEADER in each
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    15
# file and include the License file at src/OPENSOLARIS.LICENSE.
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    16
# If applicable, add the following below this CDDL HEADER, with the
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    17
# fields enclosed by brackets "[]" replaced with your own identifying
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    18
# information: Portions Copyright [yyyy] [name of copyright owner]
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    19
#
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    20
# CDDL HEADER END
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    21
#
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    22
#
470
15a9be57131d 6935613 Lacking sources for several iconv binary tables
hnhn
parents: 457
diff changeset
    23
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
457
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    24
#
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    25
470
15a9be57131d 6935613 Lacking sources for several iconv binary tables
hnhn
parents: 457
diff changeset
    26
for i in `ls *.tbl`; do
457
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    27
	ren=`echo $i | perl -pe 's:%:_:'`
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    28
	mv $i $ren
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    29
	perl -i -pe 's:License"\).  :License").:' $ren
80ebd123d7b9 6503736 European single byte codeset iconvs write to buffer before checking on the output buffer size
hnhn
parents:
diff changeset
    30
done
470
15a9be57131d 6935613 Lacking sources for several iconv binary tables
hnhn
parents: 457
diff changeset
    31
15a9be57131d 6935613 Lacking sources for several iconv binary tables
hnhn
parents: 457
diff changeset
    32
for i in `ls *.btbl`; do
15a9be57131d 6935613 Lacking sources for several iconv binary tables
hnhn
parents: 457
diff changeset
    33
	ren=`echo $i | perl -pe 's:%:_: ; s:btbl:tbl: ; s:ibm:IBM-:'`
15a9be57131d 6935613 Lacking sources for several iconv binary tables
hnhn
parents: 457
diff changeset
    34
	mv $i $ren
15a9be57131d 6935613 Lacking sources for several iconv binary tables
hnhn
parents: 457
diff changeset
    35
done