ICU-5092 Automatically generate a compatible configure script on i5/OS.

X-SVN-Rev: 19626
This commit is contained in:
George Rhoten 2006-05-16 16:25:42 +00:00
parent 3893bd1ab2
commit 2c950afaad
3 changed files with 26 additions and 4590 deletions

File diff suppressed because it is too large Load diff

View 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

View file

@ -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."