This commit is contained in:
My2ndAngelic 2024-07-16 16:08:25 +03:00 committed by GitHub
commit ed4babafed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 13 additions and 390 deletions

View file

@ -1,25 +0,0 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl -L "https://sourceforge.net/projects/freepascal/files/Linux/3.2.0/fpc-3.2.0-x86_64-linux.tar/download" -o pascal.tar
tar xf pascal.tar --strip-components=1
# FreePascal uses an interactive installer
./install.sh << ANSWERS
$PREFIX
n
n
n
ANSWERS
cd ..
rm -rf build
# A sample config (needed for each "project") is written to /etc
# We'll copy that into the local lib dir (fpc searches there too on compile)
mkdir lib/fpc/etc
cp -r /etc/fp* lib/fpc/etc/

View file

@ -1,5 +0,0 @@
#!/usr/bin/env bash
# Compile pascal files
fpc -oout -v0 "$@"
chmod +x out

View file

@ -1 +0,0 @@
export PATH=$PWD/bin:$PATH

View file

@ -1,5 +0,0 @@
{
"language": "pascal",
"version": "3.2.0",
"aliases": ["pascal", "freepascal", "pp", "pas"]
}

View file

@ -1,4 +0,0 @@
#!/bin/bash
shift # Filename is only used to compile
./out "$@"

View file

@ -1,5 +0,0 @@
program test;
begin
writeln('OK');
end.