#!/bin/sh
if [ $# -lt 2 ]
then
  SHLINE=`head -n 1 $1.sh`
else
  SHLINE="#!$2"
fi
if [ $# -lt 3  ]
then
  OPT=-i
else
  OPT="$3"
fi  
echo Binding $1.sh to $1 
scbind $1.sh $1.c $1 "$SHLINE" $OPT
echo Compiling...
cc -o $1 $1.c xsh.c decode.c 

