#!/bin/sh
# $Id: rm_dep 1172 2019-06-29 07:27:24Z mueller $
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright 2010-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
#
#  Revision History: 
# Date         Rev Version  Comment
# 2016-02-06   727   1.2.1  add dep_vsim
# 2015-02-14   646   1.2    add dep_vsyn
# 2011-01-09   354   1.1.1  add *.dep for cpp depends
# 2010-04-26   284   1.1    add xargs -r to prevent rm errors on empty lists
# 2010-04-24   282   1.0    Initial version
#
for ftype in dep dep_ghdl dep_xst dep_isim dep_ucf_cpp dep_vsyn dep_vsim
do
  echo "---------- remove *.$ftype ----------------------------------------"
  find -name "*.$ftype" | xargs --no-run-if-empty rm -v
done
