#!/bin/sh
# --------------------------------------------------------------------------
# Copyright 1992-1993 by Forschungszentrum Informatik (FZI)
#
# You can use and distribute this software under the terms of the license
# version 1 you should have received along with this software.
# If not or if you want additional information, write to
# Forschungszentrum Informatik, "OBST Projekt", Haid-und-Neu-Strasse 10-14,
# D-76131 Karlsruhe, Germany.
# --------------------------------------------------------------------------
# obst-sil - 5/10/93 - Dietmar Theobald
#
# OBST schema implementation editor which is used to maintain the association of
# object files/libraries with <schema>.

self='obst-sil'
[ -n "$OBSTdir" ] || { OBSTdir="`cd \`dirname $0\`;pwd`/"; export OBSTdir; }

if [ -z "$OBSTCONTAINER" -a -z "$SOSCONTAINER" ] ; then
  echo >&2 "*** $self: environment variable OBSTCONTAINER not defined"
  exit 1
fi
use_absolute_paths=
#use_absolute_paths=+

if [ "$use_absolute_paths" ]; then
   wd=`pwd`

   for arg
   do
      case "$arg" in
	 [!/]*.a | [!/]*.o) arg="$wd/$arg" ;;
      esac
      args="$args $arg"
   done
else
   args="$*"
fi
${OBSTdir}sil $args || exit 1
