File:  [PGP] / pgp / src / ccc.x28
Revision 1.1.1.5 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:45:22 2018 UTC (8 years, 1 month ago) by root
Branches: phill, MAIN
CVS tags: pgp263i, HEAD
PGP 2.6.3i

:
#
# script to compile ANSI source with a K&R compiler and unproto.
#

while :
do
	case $1 in
		-c)	;;
		-o)	shift ;;
		*.c)	break ;;
		*)	arg="$arg $1" ;;
	esac
	shift
done

set -e

f=$1
shift
b=`basename $f .c`

cc -E -C -I. $arg $f | unproto/unproto | \
	sed 's/^#[ 	]*\([0-9][0-9]*\)/#line \1 "'"\/tmp\/${b}.c"'"/' >/tmp/${b}.c
cc -c $arg /tmp/${b}.c $*
rm /tmp/${b}.c

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.