From cc1445be90323819d0b65d9fd4821d054fbb3c7a Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 10 Apr 2024 13:32:16 -0700 Subject: [PATCH] Update applets/cdecl.pl command and add cdecl to Dockerfile --- Docker/Dockerfile | 3 +++ applets/cdecl.pl | 2 +- lib/PBot/VERSION.pm | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Docker/Dockerfile b/Docker/Dockerfile index 33a1d2cc..2fff10f3 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -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 diff --git a/applets/cdecl.pl b/applets/cdecl.pl index 630c54d8..48fe9c44 100755 --- a/applets/cdecl.pl +++ b/applets/cdecl.pl @@ -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; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 92573beb..d00d822e 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -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", };