#!/bin/sh

lib=$1
shift

rm -f $lib
rm -f lib.lst

for f in $*; do
  if [ -f $f ]; then
  echo "+$f&" | sed s/\\//\\\\/g >> lib.lst
  fi
done

if [ -f lib.lst ]; then
  /opt/dm/bin/lib /c /n /noi /p:512 $lib @lib.lst
fi

