File: run_cpp.ksh

package info (click to toggle)
polyorb 2.11~20140418-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 30,012 kB
  • ctags: 465
  • sloc: ada: 273,015; sh: 4,507; makefile: 4,265; python: 1,332; cpp: 1,213; java: 507; ansic: 274; xml: 30; perl: 23; exp: 6
file content (20 lines) | stat: -rwxr-xr-x 461 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/ksh

# run_cpp
# $Id: run_cpp.ksh 39635 2006-12-18 11:56:48Z quinot $

# This optional wrapper can be used when no C++ preprocessor is available
# to fall back on a standard UNIX C preprocessor producing output on
# stdout only.

while [ $# -gt 0 ]; do
  case "$1" in
    -o)
      shift; redir="> \"$1\""; shift ;;
    -I)
      shift; args="$args \"-I$1\""; shift ;;
    *)
      args="$args \"$1\""; shift ;;
  esac
done
eval "/lib/cpp $args $redir"