source: LMDZ6/trunk/libf/phylmd/ecrad-acc/bin/make_deps.sh

Last change on this file was 6016, checked in by yann meurdesoif, 3 months ago

Add new ecrad version from DWD ported onto OpenACC, closed from original ecrad ECMWF starting point for LMDZ ecrad version.

Modification from ecrad-lmdz version has been included.

YM

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 737 bytes
Line 
1#!/bin/sh
2#
3# (C) Copyright 2015- ECMWF.
4#
5# This software is licensed under the terms of the Apache Licence Version 2.0
6# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
7#
8# In applying this licence, ECMWF does not waive the privileges and immunities
9# granted to it by virtue of its status as an intergovernmental organisation
10# nor does it submit to any jurisdiction.
11
12
13EXT="parkind1.o|yomhook.o|yomcst.o|yomdyncore.o|yomlun.o|abor1.o|yomtag.o|mpl_module.o|yommp0.o"
14
15while [ "$1" ]
16do
17    DEPS=$(egrep -i '^[ \t]*use' $1 | awk '-F[ ,]' '{print $2".o"}' | tr '[:upper:]' '[:lower:]' | egrep -v "$EXT" | tr '\n' ' ')
18    if [ "$DEPS" ]
19    then
20        echo $1 | awk -F. '{print $1"'".o: $DEPS"'"}'
21    fi
22    shift
23done
Note: See TracBrowser for help on using the repository browser.