diff options
author | Richard Stallman <rms@gnu.org> | 1993-10-10 02:50:18 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-10-10 02:50:18 +0000 |
commit | e03bb07275a267f365174aad5a10e1d2d98d4591 (patch) | |
tree | 026b2830636d787a2157f42f5f02ba539cccab80 /gcc | |
parent | 0ef87f3907b6179c56bd1266c2ecd5c37fb87c00 (diff) | |
download | gcc-e03bb07275a267f365174aad5a10e1d2d98d4591.zip gcc-e03bb07275a267f365174aad5a10e1d2d98d4591.tar.gz gcc-e03bb07275a267f365174aad5a10e1d2d98d4591.tar.bz2 |
(sys/spinlock.h): Don't copy it if it doesn't exist.
(DPS/XDPSlib.h): Change "XDPS.h" to <DPS/XDPS.h>, for AIX.
From-SVN: r5701
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixincludes | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 3731319..79473e0 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -462,7 +462,7 @@ fi # Fix HP's use of ../machine/inline.h to refer to # /usr/include/machine/inline.h file=sys/spinlock.h -if [ ! -r ${LIB}/$file ] ; then +if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file fi if [ -r ${LIB}/$file ] ; then @@ -476,6 +476,20 @@ if [ -r ${LIB}/$file ] ; then fi fi +# Fix AIX use of "XDPS.h" to refer to <DPS/XDPS.h> +file=DPS/XDPSlib.h +if [-r $file] && [ ! -r ${LIB}/$file ] ; then + cp $file ${LIB}/$file +fi +if [ -r ${LIB}/$file ] ; then + echo Fixing $file + sed -e 's,"XDPS.h",<DPS/XDPS.h>,' ${LIB}/$file > ${LIB}/${file}.sed + rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file + if cmp $file ${LIB}/$file >/dev/null 2>&1; then + rm ${LIB}/$file + fi +fi + # Fix an error in this file: the #if says _cplusplus, not the double # underscore __cplusplus that it should be file=tinfo.h |