xref: /trunk/main/solenv/bin/makedepn (revision 5b501c92)
1cdf0e10cSrcweir#!/bin/sh -e
2*5b501c92SAndrew Rist# *************************************************************
3*5b501c92SAndrew Rist#
4*5b501c92SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
5*5b501c92SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
6*5b501c92SAndrew Rist#  distributed with this work for additional information
7*5b501c92SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
8*5b501c92SAndrew Rist#  to you under the Apache License, Version 2.0 (the
9*5b501c92SAndrew Rist#  "License"); you may not use this file except in compliance
10*5b501c92SAndrew Rist#  with the License.  You may obtain a copy of the License at
11*5b501c92SAndrew Rist#
12*5b501c92SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
13*5b501c92SAndrew Rist#
14*5b501c92SAndrew Rist#  Unless required by applicable law or agreed to in writing,
15*5b501c92SAndrew Rist#  software distributed under the License is distributed on an
16*5b501c92SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*5b501c92SAndrew Rist#  KIND, either express or implied.  See the License for the
18*5b501c92SAndrew Rist#  specific language governing permissions and limitations
19*5b501c92SAndrew Rist#  under the License.
20*5b501c92SAndrew Rist#
21*5b501c92SAndrew Rist# *************************************************************
22cdf0e10cSrcweirif [ -z "$1" ]; then
23cdf0e10cSrcweir  exit 1;
24cdf0e10cSrcweirfi
25cdf0e10cSrcweirinfile=`echo "$1" | sed 's/^@//'`
26cdf0e10cSrcweirfor i in `cat "$infile"`; do
27cdf0e10cSrcweir  i=`echo "$i" | fgrep -- "-O:" | awk -F: '{print $2}'`
28cdf0e10cSrcweir  if [ ! -z "$i" ]; then
29cdf0e10cSrcweir    echo "#" > "$i"
30cdf0e10cSrcweir    exit 0;
31cdf0e10cSrcweir  fi;
32cdf0e10cSrcweirdone
33cdf0e10cSrcweirexit 1
34