Update applets/cdecl.pl command and add cdecl to Dockerfile

This commit is contained in:
Pragmatic Software 2024-04-10 13:32:16 -07:00
parent 9ef521309a
commit cc1445be90
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
3 changed files with 5 additions and 2 deletions

View File

@ -41,6 +41,9 @@ RUN pip install git+https://github.com/garabik/unicode --break-system-packages
# paren/prec
RUN pip install 'pycparser==2.10' --break-system-packages
# cdecl
RUN apt-get -y install cdecl
WORKDIR /opt
# Get PBot from GitHub

2
applets/cdecl.pl vendored
View File

@ -16,7 +16,7 @@ if (@args < 2) {
$command = quotemeta($command);
$command =~ s/\\ / /g;
my $result = `/usr/bin/cdecl -c $command`;
my $result = `cdecl $command`;
chomp $result;
$result =~ s/\n/, /g;

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4745,
BUILD_REVISION => 4747,
BUILD_DATE => "2024-04-10",
};