| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | # note that the debug build must be used with the -t option to get the beams right in the .mscx files |
| 4 | |
| 5 | MSCORE=../../../build.debug/mscore/mscore |
| 6 | capfiles=`catscip-shell system . . cat. tst_capella_io.cpp | grepscip-shell system . . grep. "{ capReadTest" | awkscip-shell system . . awk. -F\" '{print $2}' | sortscip-shell system . . sort.` |
| 7 | capxfiles=`catscip-shell system . . cat. tst_capella_io.cpp | grepscip-shell system . . grep. "{ capxReadTest" | awkscip-shell system . . awk. -F\" '{print $2}' | sortscip-shell system . . sort.` |
| 8 | |
| 9 | echoscip-shell system . . echo. "updating Capella files ..." |
| 10 | for f in $capfiles; do |
| 11 | echoscip-shell system . . echo. "${f}.cap.mscx -> ${f}.cap-ref.mscx" |
| 12 | $MSCORE -t ${f}.cap.mscx -o ${f}.cap-ref.mscx &> /dev/nullscip-shell filesystem . . `/dev/null`. |
| 13 | cpscip-shell system . . cp. ../../../build.debug/mtest/capella/io/${f}.cap.mscx ${f}.cap-ref.mscx |
| 14 | done |
| 15 | |
| 16 | echoscip-shell system . . echo. "updating CapellaXML files ..." |
| 17 | for f in $capxfiles; do |
| 18 | echoscip-shell system . . echo. "${f}.capx -> ${f}.capx-ref.mscx" |
| 19 | # $MSCORE -t ${f}.capx -o ${f}.capx-ref.mscx &> /dev/null |
| 20 | cpscip-shell system . . cp. ../../../build.debug/mtest/capella/io/${f}.capx.mscx ${f}.capx-ref.mscx |
| 21 | done |