Initial commit
This commit is contained in:
commit
93a4378475
62 changed files with 864 additions and 0 deletions
4
languages/pascal/Dockerfile
Normal file
4
languages/pascal/Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM frolvlad/alpine-fpc
|
||||
LABEL author="1Computer1"
|
||||
|
||||
COPY run.sh /var/run/
|
10
languages/pascal/run.sh
Normal file
10
languages/pascal/run.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
printf %s "$1" > program.pas
|
||||
|
||||
# fpc does not use stderr, ld however does, capture both
|
||||
res="$(fpc program.pas 2>&1)"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
./program || true
|
||||
else
|
||||
printf %s "$res"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue