#!/bin/bash if [ "X$1" == "X-c" ]; then compile_only=1 shift fi ycfile=$1 file=`echo $ycfile|sed 's/\.yc$//'` echo '' >| "$file".xml ; ysltproc $ycfile "$file".xml >| "$file".c if test -z $compile_only; then cc -o "$file" "$file".c fi