Skip to content

Commit

Permalink
f90mkdpnd from PR MITgcm#858
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanaEscobar committed Aug 27, 2024
1 parent 0116868 commit e585d4b
Showing 1 changed file with 9 additions and 39 deletions.
48 changes: 9 additions & 39 deletions tools/f90mkdepend
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,18 @@ FS=
FS90=

# process option arguments
key_prev=
for key in "$@" ; do

# If the previous option needs an argument, assign it.
if test -n "$key_prev"; then
eval "$key_prev=\$key"
key_prev=
continue
fi

case $key in
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-fs)
key_prev='FS'
;;
-fs=*)
FS="${key#*=}"
shift
FS="$1"
shift
;;
-fs90)
key_prev='FS90'
;;
-fs90=*)
FS90="${key#*=}"
shift
FS90="$1"
shift
;;
*)
echo "f90mkdepend: Unknown option: $key"
Expand All @@ -42,26 +32,6 @@ for key in "$@" ; do
esac
done

#while [[ $# -gt 0 ]]; do
# key="$1"
# case $key in
# -fs)
# shift
# FS="$1"
# shift
# ;;
# -fs90)
# shift
# FS90="$1"
# shift
# ;;
# *)
# echo "f90mkdepend: Unknown option: $key"
# exit 1
# ;;
# esac
#done

# don't complain if *.F90 doesn't match any files
shopt -s nullglob

Expand Down

0 comments on commit e585d4b

Please sign in to comment.