xref: /aoo42x/main/solenv/bin/makedepn (revision 02458208)
1cdf0e10cSrcweir#!/bin/sh -e
25b501c92SAndrew Rist# *************************************************************
35b501c92SAndrew Rist#
45b501c92SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
55b501c92SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
65b501c92SAndrew Rist#  distributed with this work for additional information
75b501c92SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
85b501c92SAndrew Rist#  to you under the Apache License, Version 2.0 (the
95b501c92SAndrew Rist#  "License"); you may not use this file except in compliance
105b501c92SAndrew Rist#  with the License.  You may obtain a copy of the License at
115b501c92SAndrew Rist#
125b501c92SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
135b501c92SAndrew Rist#
145b501c92SAndrew Rist#  Unless required by applicable law or agreed to in writing,
155b501c92SAndrew Rist#  software distributed under the License is distributed on an
165b501c92SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
175b501c92SAndrew Rist#  KIND, either express or implied.  See the License for the
185b501c92SAndrew Rist#  specific language governing permissions and limitations
195b501c92SAndrew Rist#  under the License.
205b501c92SAndrew Rist#
215b501c92SAndrew Rist# *************************************************************
22cdf0e10cSrcweirif [ -z "$1" ]; then
23cdf0e10cSrcweir  exit 1;
24cdf0e10cSrcweirfi
25cdf0e10cSrcweirinfile=`echo "$1" | sed 's/^@//'`
26cdf0e10cSrcweirfor i in `cat "$infile"`; do
27*02458208SMatthias Seidel  i=`echo "$i" | grep -F -- "-O:" | awk -F: '{print $2}'`
28cdf0e10cSrcweir  if [ ! -z "$i" ]; then
29cdf0e10cSrcweir    echo "#" > "$i"
30cdf0e10cSrcweir    exit 0;
31cdf0e10cSrcweir  fi;
32cdf0e10cSrcweirdone
33cdf0e10cSrcweirexit 1
34