Files
tp2-vsl-pds/compile
Dimitri Lajou 7114c0e978 Initial commit
2025-03-21 17:26:31 +01:00

17 lines
270 B
Bash
Executable File

#!/bin/sh
# stop script at first fail
set -e
if [ "$#" -ne 1 ] ; then
echo "usage: $0 file.vsl"
exit 0
fi
name="`dirname $1`/`basename $1 .vsl`"
# translating from VSL to LLVM IR (.ll)
java -jar build/libs/TP2.jar < $name.vsl > $name.ll
clang $name.ll -o $name