Source

gdc / gdc.test / runnable / extra-files / cov2-postscript.sh

Full commit
#!/usr/bin/env bash

# trim off the last line which contains the path of the file which differs between windows and non-windows
LINE_COUNT_MINUS_1=$(( `wc -l < ${RESULTS_DIR}/runnable/runnable-cov2.lst` - 1 ))
head -n${LINE_COUNT_MINUS_1} ${RESULTS_DIR}/runnable/runnable-cov2.lst > ${RESULTS_DIR}/runnable/runnable-cov2.lst2

diff --strip-trailing-cr runnable/extra-files/runnable-cov2.lst ${RESULTS_DIR}/runnable/runnable-cov2.lst2
if [ $? -ne 0 ]; then
    exit 1
fi

rm ${RESULTS_DIR}/runnable/runnable-cov2.lst{,2}