#!/bin/sh
#
# Author: David Kulp (dk/ucsc)
#
# usage: pack <data_set_name>
# NB: do NOT include "/" at end of data_set_name
#
lastline=`tail -1 $1/* | cut -c1-2`
if [ "$lastline" = "//" ]; then
   echo Packing subdirectory $1 ...
   cat $1/* > $1.dat
else
   echo Not a GenBank directory
fi

echo type \"rm -rf $1\" to remove subdirectory

