#!/bin/csh
### From the PolRefs, derive the actual set of positions
##############################################################
# The file "refs.txt" contains the details of the references.
##############################################################

#### Check the number of arguments in the correct range.
if (($#argv == 0) || ($#argv > 1)) then
    echo "Usage: $0 reference_flags"
    echo "       Print out the full reference from the 22-byte reference_flag"
    exit 1
endif

#############################################################

fcat $0.awk > /tmp/a$$
echo "$*" | gawk -f /tmp/a$$
/bin/rm -f /tmp/a$$
exit 0
