mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-05 19:49:32 +01:00
pbot-vm: add Tumbleweed orchestration script
Fix Java language missing `/bin/sh` in execute() Update brainfck language to use `bff`
This commit is contained in:
parent
f8a739a688
commit
91f8547aed
@ -30,7 +30,7 @@ sub postprocess {
|
||||
|
||||
my $input_quoted = quotemeta $self->{input};
|
||||
$input_quoted =~ s/\\"/"'\\"'"/g;
|
||||
my ($retval, $result) = $self->execute(60, "bash -c \"date -s \@$self->{date}; ulimit -t 5; echo $input_quoted | java prog $self->{arguments} > .output\"");
|
||||
my ($retval, $result) = $self->execute(60, "bash -c \"date -s \@$self->{date}; ulimit -t 5; echo $input_quoted | java prog $self->{arguments} > .output\"", '/bin/sh');
|
||||
|
||||
$result = "";
|
||||
open(FILE, '.output');
|
||||
|
1
applets/pbot-vm/guest/orchest/README.md
Normal file
1
applets/pbot-vm/guest/orchest/README.md
Normal file
@ -0,0 +1 @@
|
||||
Orchestration scripts to install packages and set-up environments
|
23
applets/pbot-vm/guest/orchest/tumbleweed
Executable file
23
applets/pbot-vm/guest/orchest/tumbleweed
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
# File: tumbleweed
|
||||
#
|
||||
# Purpose: Orchestration script to install packages and set-up environment
|
||||
# on OpenSUSE Tumbleweed for pbot-vim.
|
||||
|
||||
# SPDX-FileCopyrightText: 2024 Pragmatic Software <pragma78@gmail.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# for virt-io socket
|
||||
zypper in socat
|
||||
|
||||
# for `cc` C language support
|
||||
zypper in libubsan1 libasan8 gdb gcc-32bit glibc-32bit
|
||||
|
||||
# for pbot-vm guest-server support
|
||||
zypper in perl-IPC-Run perl-JSON-XS make
|
||||
cpan i IPC::Shareable
|
||||
|
||||
# for `cc` additional languages
|
||||
zypper in ksh zsh tcl lua php8-cli nodejs-common guile bff bc gcc-c++
|
||||
zypper in --no-recommends clisp gcc-go java java-devel
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2021-2024 Pragmatic Software <pragma78@gmail.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
use warnings;
|
||||
@ -15,7 +15,7 @@ sub initialize {
|
||||
$self->{sourcefile} = 'prog.bf';
|
||||
$self->{execfile} = 'prog.bf';
|
||||
$self->{default_options} = '';
|
||||
$self->{cmdline} = 'bf $options $sourcefile';
|
||||
$self->{cmdline} = 'bff $options $sourcefile';
|
||||
}
|
||||
|
||||
1;
|
||||
|
@ -20,7 +20,8 @@ sub initialize {
|
||||
$self->{cmdline} = 'javac $options $sourcefile';
|
||||
|
||||
$self->{prelude} = <<'END';
|
||||
import java.*;
|
||||
import java.lang.*;
|
||||
import java.util.*;
|
||||
|
||||
END
|
||||
}
|
||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
||||
# These are set by the /misc/update_version script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 4726,
|
||||
BUILD_DATE => "2024-03-27",
|
||||
BUILD_REVISION => 4727,
|
||||
BUILD_DATE => "2024-03-30",
|
||||
};
|
||||
|
||||
sub initialize {}
|
||||
|
Loading…
Reference in New Issue
Block a user