Back to home page

darwin3

 
 

    


Warning, /tools/darwin/conscheckall is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit 8e9db6ec on 2022-11-25 15:27:00 UTC
c4877c7daf Oliv*0001 #! /usr/bin/env bash
                0002 mydir=$(dirname $0)
                0003 conselems=" C  N  P Fe Si  A  O"
                0004 testoutput_cons() {
                0005     all=""
                0006     for e in $conselems; do
8e9db6ecb2 Oliv*0007         if compgen -G "$1/darwin_cons_$e.*txt" > /dev/null; then
                0008             f="$(ls "$1"/darwin_cons_$e.*txt | tail -n 1)"
                0009             yy="$($mydir/conscheck "$f" 0 -)"
                0010             yy="$(printf "%2.0f" $yy)"
c4877c7daf Oliv*0011         else
8e9db6ecb2 Oliv*0012             yy=" -"
c4877c7daf Oliv*0013         fi
                0014         all="$all $yy"
                0015     done
                0016     echo "$all"
                0017 }
                0018 
                0019 echo " $conselems"
                0020 for d in "$@"; do
                0021   echo "$(testoutput_cons "$d")  $d"
                0022 done