Add provides key to some languages

Provides key allows 1 package to provide multiple languages

Expect an API update to work with these new packages
This commit is contained in:
Thomas Hobson 2021-04-25 13:11:33 +12:00
parent 3b25ec4386
commit ccc1e4c08b
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
5 changed files with 37 additions and 10 deletions

View file

@ -3,21 +3,21 @@
# Put instructions to compile source code, remove this file if the language does not require this stage
case "${PISTON_ALIAS}" in
gcc | c)
case "${PISTON_LANGUAGE}" in
c)
rename 's/$/\.c/' "$@" # Add .c extension
gcc -std=c11 *.c -lm
;;
g++ | c++ | cpp)
c++)
rename 's/$/\.cpp/' "$@" # Add .cpp extension
g++ -std=c++17 *.cpp
;;
gdc | d)
d)
rename 's/$/\.d/' "$@" # Add .d extension
gdc *.d
;;
*)
echo "How did you get here? (${PISTON_ALIAS})"
echo "How did you get here? (${PISTON_LANGUAGE})"
exit 1
;;
esac