mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-09 21:36:27 +02:00
pkg(ada-2012): Added ada 2012
This commit is contained in:
parent
9057e3c8d1
commit
9276abde3e
6 changed files with 81 additions and 0 deletions
30
packages/ada/2012/compile
Normal file
30
packages/ada/2012/compile
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue