Update Pascal to 3.2.2
This commit is contained in:
parent
c29b0411cc
commit
d289f98ca8
|
@ -1,26 +1,6 @@
|
|||
{
|
||||
"name": "piston",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"devDependencies": {
|
||||
"prettier": "2.4.1"
|
||||
}
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz",
|
||||
"integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin-prettier.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"lockfileVersion": 1,
|
||||
"dependencies": {
|
||||
"prettier": {
|
||||
"version": "2.4.1",
|
||||
|
|
|
@ -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/
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Compile pascal files
|
||||
fpc -oout -v0 "$@"
|
||||
chmod +x out
|
|
@ -1 +0,0 @@
|
|||
export PATH=$PWD/bin:$PATH
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"language": "pascal",
|
||||
"version": "3.2.0",
|
||||
"aliases": ["pascal", "freepascal", "pp", "pas"]
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
shift # Filename is only used to compile
|
||||
./out "$@"
|
|
@ -1,5 +0,0 @@
|
|||
program test;
|
||||
|
||||
begin
|
||||
writeln('OK');
|
||||
end.
|
Loading…
Reference in New Issue