mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5092 Automatically generate a compatible configure script on i5/OS.
X-SVN-Rev: 19626
This commit is contained in:
parent
3893bd1ab2
commit
2c950afaad
3 changed files with 26 additions and 4590 deletions
4590
icu4c/as_is/os400/configure
vendored
4590
icu4c/as_is/os400/configure
vendored
File diff suppressed because it is too large
Load diff
16
icu4c/as_is/os400/convertConfigure.sed
Normal file
16
icu4c/as_is/os400/convertConfigure.sed
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Copyright (C) 2006-2006, International Business Machines Corporation
|
||||
# and others. All Rights Reserved.
|
||||
#
|
||||
# Use "test -x" instead of "test -f"
|
||||
# due to how executables are created in a different file system.
|
||||
s/test[ ]*-f/test -x/g
|
||||
# Use the more efficient del instead of rm command.
|
||||
s/rm[ ]*-rf/del -f/g
|
||||
s/rm[ ]*-fr/del -f/g
|
||||
s/rm[ ]*-f/del -f/g
|
||||
# Borne shell isn't always available on i5/OS
|
||||
s/\/bin\/sh/\/usr\/bin\/qsh/g
|
||||
# Use -c qpponly instead of -E to enable the preprocessor on the compiler
|
||||
s/\$CC -E/\$CC -c -qpponly/g
|
||||
# no diff in qsh the equivalent is cmp
|
||||
s/ diff / cmp -s /g
|
|
@ -118,5 +118,15 @@ else
|
|||
pax -C 819 -rvf $tar_file $binary_files1
|
||||
pax -C 819 -rvf $tar_file $binary_files2
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Generating qsh compatible configure ..."
|
||||
echo ""
|
||||
|
||||
sed -f convertConfigure.sed icu/source/configure > icu/source/configureTemp
|
||||
del -f icu/source/configure
|
||||
mv icu/source/configureTemp icu/source/configure
|
||||
chmod 755 icu/source/configure
|
||||
|
||||
echo ""
|
||||
echo "$0 has completed extracting ICU from $tar_file."
|
||||
|
|
Loading…
Add table
Reference in a new issue