"Fossies" - the Fresh Open Source Software Archive

Member "gama-2.05/tests/gama-local/scripts/gama-local-parameters.in" (10 May 2019, 1196 Bytes) of package /linux/privat/gama-2.05.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 set -e
    4 
    5 GAMAL=@top_builddir@/bin/gama-local
    6 GAMAT=@top_builddir@/bin/gama-local-xml2txt
    7 RES=@GAMA_RESULTS@/gama-local-parameters
    8 
    9 if [ ! -d $RES ] ; then
   10     mkdir -p $RES
   11 fi
   12 
   13 rm -f $RES/par.xml $RES/nop.xml $RES/par.tmp $RES/nop.tmp
   14 
   15 $GAMAL @GAMA_INPUT@/gama-local-par.gkf > $RES/par.xml
   16 $GAMAL @GAMA_INPUT@/gama-local-nop.gkf > $RES/nop.xml \
   17     --algorithm gso \
   18     --cov-band  1 \
   19     --latitude  50.2 \
   20     --ellipsoid wgs84
   21 
   22 diff -s $RES/par.xml $RES/nop.xml
   23 if test -n "$(diff $RES/par.xml $RES/nop.xml)" ; then
   24     exit 1
   25 fi
   26 
   27 $GAMAT < $RES/par.xml > $RES/par.txt
   28 $GAMAT < $RES/nop.xml > $RES/nop.txt
   29 
   30 diff -s $RES/par.txt $RES/nop.txt
   31 if test -n "$(diff $RES/par.txt $RES/nop.txt)" ; then
   32     exit 1
   33 fi
   34 
   35 if test "x$GNU_GAMA_LOCAL_TEST_XMLLINT" = "xyes"; then
   36     xmllint --schema @GAMA_XML@/gama-local.xsd --noout \
   37         @GAMA_INPUT@/gama-local-par.gkf
   38     xmllint --schema @GAMA_XML@/gama-local.xsd --noout \
   39         @GAMA_INPUT@/gama-local-nop.gkf
   40     xmllint --schema @GAMA_XML@/gama-local-adjustment.xsd --noout $RES/par.xml
   41     xmllint --schema @GAMA_XML@/gama-local-adjustment.xsd --noout $RES/nop.xml
   42 fi
   43 
   44 # rm -f $RES/par.xml $RES/nop.xml $RES/par.tmp $RES/nop.tmp