0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-18 20:14:45 +00:00
Files
termux-packages/packages/lesspipe/configure.patch
2025-01-22 12:55:22 +05:30

20 lines
815 B
Diff

--- ./configure.orig 2025-01-22 07:22:22.309483203 +0000
+++ ./configure 2025-01-22 07:24:11.825224432 +0000
@@ -48,12 +48,12 @@
my @bad = ();
my $shell = check_shell_vers();
if ( ! $opt_nomake ) {
- my $no_bash = (grep {/bash/} @bad and ! $opt_all_completions);
- my $no_zsh = (grep {/zsh/} @bad and ! $opt_all_completions);
+ my $no_bash = ($opt_all_completions or ! grep {/bash/} @bad);
+ my $no_zsh = ($opt_all_completions or ! grep {/zsh/} @bad);
open OUT, ">Makefile";
while (<DATA>) {
- next if /bash_complete_dir/ and $no_bash;
- next if /zsh\/site-functions/ and $no_zsh;
+ next if $no_bash and /bash_complete_dir/;
+ next if $no_zsh and /zsh\/site-functions/;
s/opt_prefix/$prefix/;
if ($bash_complete_dir and ! $opt_prefix) {
s/mkdir.*bash-completion.*/mkdir -p $bash_complete_dir/;