[comp.os.minix] Atari St GCC update 4 of 10

bammi@dsrgsun.ces.cwru.edu (Jwahar R. Bammi) (11/28/88)

#!/bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #!/bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#	Makefile
#	README.UPDATE
#	dir-update.diff
# This archive created: Thu Oct 27 21:22:33 1988
# By:	Jwahar R. Bammi(Case Western Reserve University)
#  Uucp:	 {decvax,sun,att}!cwjcc!dsrgsun!bammi
# Csnet:	 bammi@dsrgsun.ces.CWRU.edu
#  Arpa:	 bammi@dsrgsun.ces.CWRU.edu
#
export PATH; PATH=/bin:$PATH
echo shar: extracting "'Makefile'" '(355 characters)'
if test -f 'Makefile'
then
	echo shar: over-writing existing file "'Makefile'"
fi
sed 's/^X//' << \SHAR_EOF > 'Makefile'
XCROSSDIR = /dsrg/bammi/cross-minix
XCROSSLIB = $(CROSSDIR)/lib
XCROSSBIN = $(CROSSDIR)/bin
X
Xall: libdir.a libdir32.a
X
Xlibdir.a:
X	make -f Makefile.16 clean
X	make -f Makefile.16
X
Xlibdir32.a:
X	make -f Makefile.32 clean
X	make -f Makefile.32
X
Xclean:
X	make -f Makefile.16 clean
X	make -f Makefile.32 clean
X	rm -f core
X
Xinstall:
X	cp libdir.a libdir32.a $(CROSSLIB)
SHAR_EOF
if test 355 -ne "`wc -c 'Makefile'`"
then
	echo shar: error transmitting "'Makefile'" '(should have been 355 characters)'
fi
echo shar: extracting "'README.UPDATE'" '(272 characters)'
if test -f 'README.UPDATE'
then
	echo shar: over-writing existing file "'README.UPDATE'"
fi
sed 's/^X//' << \SHAR_EOF > 'README.UPDATE'
XThis shar file contains updates the portable directory acccess routines
Xby Doug Gwyn. To update
X
X	- cd to where you keep the sources for the routines
X	- use larry walls patch program
X		patch < dir-update.diff
X
XMake and install using Makefile, Makefile.16 and Makefile.32.
SHAR_EOF
if test 272 -ne "`wc -c 'README.UPDATE'`"
then
	echo shar: error transmitting "'README.UPDATE'" '(should have been 272 characters)'
fi
echo shar: extracting "'dir-update.diff'" '(785 characters)'
if test -f 'dir-update.diff'
then
	echo shar: over-writing existing file "'dir-update.diff'"
fi
sed 's/^X//' << \SHAR_EOF > 'dir-update.diff'
X*** closedir.c.dist	Wed Nov  9 17:27:15 1988
X--- closedir.c	Sat Nov 19 03:02:34 1988
X***************
X*** 23,35 ****
X  closedir( dirp )
X  	register DIR	*dirp;		/* stream from opendir() */
X  	{
X  	if ( dirp == NULL || dirp->dd_buf == NULL )
X  		{
X  		errno = EFAULT;
X  		return -1;		/* invalid pointer */
X  		}
X  
X  	free( (pointer)dirp->dd_buf );
X  	free( (pointer)dirp );
X! 	return close( dirp->dd_fd );
X  	}
X--- 23,38 ----
X  closedir( dirp )
X  	register DIR	*dirp;		/* stream from opendir() */
X  	{
X+ 	register int	fd;
X+ 
X  	if ( dirp == NULL || dirp->dd_buf == NULL )
X  		{
X  		errno = EFAULT;
X  		return -1;		/* invalid pointer */
X  		}
X  
X+ 	fd = dirp->dd_fd;		/* bug fix thanks to R. Salz */
X  	free( (pointer)dirp->dd_buf );
X  	free( (pointer)dirp );
X! 	return close( fd );
X  	}
SHAR_EOF
if test 785 -ne "`wc -c 'dir-update.diff'`"
then
	echo shar: error transmitting "'dir-update.diff'" '(should have been 785 characters)'
fi
#	End of shell archive
exit 0
usenet: {decvax,sun}!cwjcc!dsrgsun!bammi	jwahar r. bammi
csnet:       bammi@dsrgsun.ces.CWRU.edu
arpa:        bammi@dsrgsun.ces.CWRU.edu
compuServe:  71515,155