#/bin/csh -f    This program is written in csh  (C-shell)
# UADO (uad-do) Version 1.0 Jan. 1998 (decompose and identify)
 
# PURPOSE OF PROGRAM
# This is really a simple program.  It is intended to make it easy
# for end users to execute the UAD program to decompose complex
# compound files.  Its value is that the user doesn't have to 
# remember the "-w" option and it is easier to type.

# KNOWN LIMITATIONS
# No known limitations
 
# CUSTOMIZATION AND SETUP SUGGESTIONS
# You might want to change the UAD command to be fully qualified
# instead of relying upon the "path" to locate it.

# make sure the user knows what they are running
echo "UADO (UAD-DO) Script Version 1.0 Jan. 1998"

# set uinfile to the first command line parameter after the command.
set uinfile = "$1"

# if the command line parameter was not specified then ask for it.
if ("$uinfile" == "") then
     echo -n "Enter file name to process: "
     set uinfile = $<
endif

# decompose and identify the file.
$VSTK_HOME/bin/uad -w $uinfile

# tell the user we are all done and where to find their files
echo "End of Job - all decomposed files are contained in your current"
echo -n "working directory: "
pwd
