#!/bin/csh
cat ../test_specs/tmpl_mos_*.tests  > ../test_specs/tmpl_mos.tests

echo "// AUTOMATICALLY GENERATED TEST TEMPLATES" > ../test_specs/gtd_pmos.tests
echo "// AUTOMATICALLY GENERATED TEST TEMPLATES" > ../test_specs/gtd_nmos.tests

foreach temperature (27 100)
echo "\n// TESTS for T = $temperature C\n" >> ../test_specs/gtd_pmos.tests
sed -e "s/__NSIGN__/-/g" -e "s/__PSIGN__//g"  -e "s/__TEMP__/$temperature/g"  ../test_specs/tmpl_mos.tests >> ../test_specs/gtd_pmos.tests
echo "\n// TESTS for T = $temperature C\n" >> ../test_specs/gtd_nmos.tests
sed -e "s/__NSIGN__//g"  -e "s/__PSIGN__/-/g" -e "s/__TEMP__/$temperature/g" ../test_specs/tmpl_mos.tests >> ../test_specs/gtd_nmos.tests
end

rm ../test_specs/tmpl_mos.tests
