pkg(ada-2012): Added ada 2012

This commit is contained in:
Jarrod Sanders 2022-01-30 16:12:22 -05:00
parent 9057e3c8d1
commit 9276abde3e
6 changed files with 81 additions and 0 deletions

30
packages/ada/2012/compile Normal file
View file

@ -0,0 +1,30 @@
#!/bin/bash
# split out all units in to their own files
gnatchop $@
# TODO try to compile more than just the hello unit
if [ -e "test.adb" ]
then
gnatmake "test.adb"
else
echo "It looks like you don't have a \"test\" unit"
fi
#case "${PISTON_LANGUAGE}" in
# ada)
# rename 's/$/\.cs/' "$@" # Add .cs extension
# csc -out:out *.cs
# ;;
# basic)
# rename 's/$/\.vb/' "$@" # Add .vb extension
# vbnc -out:out *.vb
# ;;
# *)
# echo "How did you get here? (${PISTON_LANGUAGE})"
# exit 1
# ;;
#esac