#!/bin/sh
if [ $# = 0 ]
then
  echo "Error: type Rungen name_of_file (not .x see script)"
  exit 1
fi
rpcgen $1.x
rpcgen -s tcp $1.x > $1_svc.c
rpcgen -Sc $1.x > client.c
rpcgen -Ss $1.x > server.c
exit 0
