Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
languagetool


Commits:
ac95c202 by Niklas Söderlund at 2024-02-20T21:01:59+01:00
Allow languagetool wrapper to read input from stdin

Adapt the wrapper script provided by Arch to allow reading input from
stdin by treating a single - as a filename. This behaviour is document
upstream [1].

1. 
https://dev.languagetool.org/tips-and-tricks.html#checking-text-from-standard-input

Signed-off-by: Niklas Söderlund <[email protected]>

- - - - -


2 changed files:

- PKGBUILD
- languagetool.sh


Changes:

=====================================
PKGBUILD
=====================================
@@ -6,7 +6,7 @@
 pkgname=languagetool
 _pkgver=6.3a
 pkgver=6.3.a
-pkgrel=1
+pkgrel=2
 pkgdesc='An open source language checker'
 arch=(any)
 url='https://www.languagetool.org'
@@ -21,7 +21,7 @@ 
source=(https://www.languagetool.org/download/LanguageTool-$_pkgver.zip
         languagetool.service)
 noextract=($pkgname-$_pkgver.zip)
 sha256sums=('7ef66e47270c5d10e893d473dcf85db08df34b3585a1a0ce2c621a8ca4b3394b'
-            'e395fe51eb107365bb6e5456a2e1a144a60296e52554b8407f241e195e434359'
+            'c559be1fbead8845caf1f269cf39bfde6486ce06aabcbdd4ba58d402168b61a7'
             '628e59208af02dd41c678135ef6dd8b328905701301d8257316b388d36d6c52b')
 
 package() {


=====================================
languagetool.sh
=====================================
@@ -10,7 +10,7 @@ declare -a argv=("$@")
 
 i=0
 for arg in "$@"; do
-  if [[ $arg != -* ]]; then
+  if [[ $arg != -* || $arg == - ]]; then
     file_present=true
   fi
   if [[ $arg == --config* ]]; then



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/languagetool/-/commit/ac95c202cfe175342a0c948aee0dfaa126a9e140

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/languagetool/-/commit/ac95c202cfe175342a0c948aee0dfaa126a9e140
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to