#!/bin/sh

# This adds the contents of the specified directory to a file area, in
# 'native' format but without any descriptions.
# This does not check for duplicates, by the way.

if [ $# != 2 ]; then
  echo "adddir - add directory contents to Black Box file area"
  echo "usage: addir <index file> <directory>"
  exit 1
fi;

ls -1 $2 | grep -v / | sed s/*// >> $1
