File: do_cpp.sh

package info (click to toggle)
eli 4.4.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 29,180 kB
  • ctags: 46,497
  • sloc: ansic: 290,588; sh: 4,471; makefile: 4,420; tcl: 3,517; lisp: 73; yacc: 71; sed: 44; awk: 11
file content (23 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# $Id: do_cpp.sh,v 1.2 2002/05/08 15:00:50 waite Exp $
# Copyright 1992, The Regents of the University of Colorado

# EXEC (do_cpp.sh) (.) (:FILE :incl.all :dir_of :vir_dir) (:FILE)
#   NEEDS (:FILE :incl.all)
#   => (:do_cpp);

PKG=$1;shift; ODIN_includes=$1;shift; ODIN_atomic=$1;shift;

if test -s "$ODIN_atomic"
then
	$PKG/cpp.exe -I"$ODIN_includes" $ODIN_atomic >do_cpp 2>ERROR
else
	cp /dev/null do_cpp
	exit 0
fi

if test -s ERROR
then
  $ODINCACHE/PKGS/skeleton/sed.exe 's/:  *\([0-9]*\):/ \1 0/' ERROR > ERRORS
else :
fi