mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-21 11:29:33 +01:00
Update applets/cdecl.pl command and add cdecl to Dockerfile
This commit is contained in:
parent
9ef521309a
commit
cc1445be90
@ -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
2
applets/cdecl.pl
vendored
@ -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;
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user