[arch-commits] Commit in languagetool/repos/community-any (4 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Sun Nov 19 11:27:17 UTC 2017


    Date: Sunday, November 19, 2017 @ 11:27:16
  Author: aginiewicz
Revision: 267435

archrelease: copy trunk to community-any

Added:
  languagetool/repos/community-any/PKGBUILD
    (from rev 267434, languagetool/trunk/PKGBUILD)
  languagetool/repos/community-any/languagetool.sh
    (from rev 267434, languagetool/trunk/languagetool.sh)
Deleted:
  languagetool/repos/community-any/PKGBUILD
  languagetool/repos/community-any/languagetool.sh

-----------------+
 PKGBUILD        |   70 +++++++++++++-------------
 languagetool.sh |  142 +++++++++++++++++++++++++++---------------------------
 2 files changed, 106 insertions(+), 106 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-19 11:27:05 UTC (rev 267434)
+++ PKGBUILD	2017-11-19 11:27:16 UTC (rev 267435)
@@ -1,35 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-# Contributor: Julien MISCHKOWITZ <wain at archlinux.fr>
-# Contributor: Panagiotis Papadopoulos pano_90 (AT) gmx (DOT) net
-
-pkgname=languagetool
-pkgver=3.8
-pkgrel=1
-pkgdesc="An open source language checker"
-arch=('any')
-url="http://www.languagetool.org" 
-license=("LGPL")
-depends=('java-runtime-headless>=8')
-makedepends=('unzip')
-optdepends=('java-runtime: needed for the GUI version'
-            'libxtst: needed for the GUI version'
-            'gtk2: needed for the GUI version')
-source=("https://www.languagetool.org/download/LanguageTool-${pkgver}.zip" "$pkgname.sh")
-noextract=($pkgname-$pkgver.zip)
-md5sums=('076d4bfdca44fb4d3e02c3dbb395d53e'
-         '136387ef7979e23004330d553736a89b')
-
-package() {
-  cd "$srcdir"
-  install -d "$pkgdir"/usr/{bin,share/java/$pkgname}
-  unzip -q LanguageTool-$pkgver.zip -d "$pkgdir"/usr/share
-  cd "$pkgdir"/usr/share/
-  mv LanguageTool-$pkgver $pkgname
-  cd $pkgname
-  mv *.jar "$pkgdir"/usr/share/java/$pkgname
-  mv libs/*.jar "$pkgdir"/usr/share/java/$pkgname
-  rm -rf libs
-  install -m755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
-}
-

Copied: languagetool/repos/community-any/PKGBUILD (from rev 267434, languagetool/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-11-19 11:27:16 UTC (rev 267435)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Julien MISCHKOWITZ <wain at archlinux.fr>
+# Contributor: Panagiotis Papadopoulos pano_90 (AT) gmx (DOT) net
+
+pkgname=languagetool
+pkgver=3.9
+pkgrel=1
+pkgdesc="An open source language checker"
+arch=('any')
+url="http://www.languagetool.org" 
+license=("LGPL")
+depends=('java-runtime-headless>=8')
+makedepends=('unzip')
+optdepends=('java-runtime: needed for the GUI version'
+            'libxtst: needed for the GUI version'
+            'gtk2: needed for the GUI version')
+source=("https://www.languagetool.org/download/LanguageTool-${pkgver}.zip" "$pkgname.sh")
+noextract=($pkgname-$pkgver.zip)
+md5sums=('4cf5a544a229df93c90690cd3208c7a4'
+         '136387ef7979e23004330d553736a89b')
+
+package() {
+  cd "$srcdir"
+  install -d "$pkgdir"/usr/{bin,share/java/$pkgname}
+  unzip -q LanguageTool-$pkgver.zip -d "$pkgdir"/usr/share
+  cd "$pkgdir"/usr/share/
+  mv LanguageTool-$pkgver $pkgname
+  cd $pkgname
+  mv *.jar "$pkgdir"/usr/share/java/$pkgname
+  mv libs/*.jar "$pkgdir"/usr/share/java/$pkgname
+  rm -rf libs
+  install -m755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
+}
+

Deleted: languagetool.sh
===================================================================
--- languagetool.sh	2017-11-19 11:27:05 UTC (rev 267434)
+++ languagetool.sh	2017-11-19 11:27:16 UTC (rev 267435)
@@ -1,71 +0,0 @@
-#!/bin/bash
-
-file_present=false
-asked_for_help=false
-start_server=false
-http_server=false
-
-declare -a argv=("$@")
-
-i=0
-for arg in "$@"; do
-  if [[ $arg != -* ]]; then
-    file_present=true
-  fi
-  if [[ $arg == --config* ]]; then
-    start_server=true
-  fi
-  if [[ $arg == --http ]]; then
-    start_server=true
-    http_server=true
-    unset argv[$i]
-  fi
-  if [[ $arg == -h ]]; then
-    asked_for_help=true
-    unset argv[$i]
-  fi
-  if [[ $arg == --help ]]; then
-    asked_for_help=true
-    unset argv[$i]
-  fi
-  ((i++))
-done
-
-CP=/usr/share/languagetool
-for name in /usr/share/java/languagetool/*.jar ; do
-  CP=$CP:$name
-done
-
-CLI_command='org.languagetool.commandline.Main'
-GUI_command='org.languagetool.gui.Main'
-NSRV_command='org.languagetool.server.HTTPServer'
-SSRV_command='org.languagetool.server.HTTPSServer'
-
-if $asked_for_help; then
-  echo "Command-line interface (CLI) help:"
-  "$JAVA_HOME/bin/java" -cp $CP $CLI_command -h | sed "s/java -jar languagetool-commandline.jar/languagetool/"
-  echo
-  echo "Graphical user interface (GUI) help:"
-  "$JAVA_HOME/bin/java" -cp $CP $GUI_command -h | sed "s/java org.languagetool.gui.Main/languagetool/"
-  echo
-  echo "HTTP server help:"
-  "$JAVA_HOME/bin/java" -cp $CP $NSRV_command -h | sed "s/HTTPServer/languagetool --http/"
-  echo
-  echo "HTTPS server help:"
-  "$JAVA_HOME/bin/java" -cp $CP $SSRV_command -h | sed "s/HTTPSServer/languagetool/"
-else
-  if $start_server; then
-    if $http_server; then
-      "$JAVA_HOME/bin/java" -cp $CP $NSRV_command "${argv[@]}"
-    else
-      "$JAVA_HOME/bin/java" -cp $CP $SSRV_command "${argv[@]}"
-    fi
-  else
-    if $file_present; then
-      "$JAVA_HOME/bin/java" -cp $CP $CLI_command "${argv[@]}"
-    else
-      "$JAVA_HOME/bin/java" -cp $CP $GUI_command "${argv[@]}"
-    fi
-  fi
-fi
-

Copied: languagetool/repos/community-any/languagetool.sh (from rev 267434, languagetool/trunk/languagetool.sh)
===================================================================
--- languagetool.sh	                        (rev 0)
+++ languagetool.sh	2017-11-19 11:27:16 UTC (rev 267435)
@@ -0,0 +1,71 @@
+#!/bin/bash
+
+file_present=false
+asked_for_help=false
+start_server=false
+http_server=false
+
+declare -a argv=("$@")
+
+i=0
+for arg in "$@"; do
+  if [[ $arg != -* ]]; then
+    file_present=true
+  fi
+  if [[ $arg == --config* ]]; then
+    start_server=true
+  fi
+  if [[ $arg == --http ]]; then
+    start_server=true
+    http_server=true
+    unset argv[$i]
+  fi
+  if [[ $arg == -h ]]; then
+    asked_for_help=true
+    unset argv[$i]
+  fi
+  if [[ $arg == --help ]]; then
+    asked_for_help=true
+    unset argv[$i]
+  fi
+  ((i++))
+done
+
+CP=/usr/share/languagetool
+for name in /usr/share/java/languagetool/*.jar ; do
+  CP=$CP:$name
+done
+
+CLI_command='org.languagetool.commandline.Main'
+GUI_command='org.languagetool.gui.Main'
+NSRV_command='org.languagetool.server.HTTPServer'
+SSRV_command='org.languagetool.server.HTTPSServer'
+
+if $asked_for_help; then
+  echo "Command-line interface (CLI) help:"
+  "$JAVA_HOME/bin/java" -cp $CP $CLI_command -h | sed "s/java -jar languagetool-commandline.jar/languagetool/"
+  echo
+  echo "Graphical user interface (GUI) help:"
+  "$JAVA_HOME/bin/java" -cp $CP $GUI_command -h | sed "s/java org.languagetool.gui.Main/languagetool/"
+  echo
+  echo "HTTP server help:"
+  "$JAVA_HOME/bin/java" -cp $CP $NSRV_command -h | sed "s/HTTPServer/languagetool --http/"
+  echo
+  echo "HTTPS server help:"
+  "$JAVA_HOME/bin/java" -cp $CP $SSRV_command -h | sed "s/HTTPSServer/languagetool/"
+else
+  if $start_server; then
+    if $http_server; then
+      "$JAVA_HOME/bin/java" -cp $CP $NSRV_command "${argv[@]}"
+    else
+      "$JAVA_HOME/bin/java" -cp $CP $SSRV_command "${argv[@]}"
+    fi
+  else
+    if $file_present; then
+      "$JAVA_HOME/bin/java" -cp $CP $CLI_command "${argv[@]}"
+    else
+      "$JAVA_HOME/bin/java" -cp $CP $GUI_command "${argv[@]}"
+    fi
+  fi
+fi
+



More information about the arch-commits mailing list