1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/hime/use-bash-not-sh.patch

96 lines
2 KiB
Diff

--- a/filter/arukas
+++ b/filter/arukas
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# hime filter arukas version 0.0.1
read -r -t 1 aa
echo -n $aa | \
--- a/filter/big5only
+++ b/filter/big5only
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# hime filter big5only version 0.0.1
read -r -t 1 aa
echo -n $aa | \
--- a/filter/jp2cn
+++ b/filter/jp2cn
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# hime filter jp2cn version 0.0.3
read -r aa
MATCH=`tail -n 681 $0 | grep $aa | head -n 1`
--- a/filter/jp2tw
+++ b/filter/jp2tw
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# hime filter jp2tw version 0.0.3
read -r aa
MATCH=`tail -n 327 $0 | grep $aa | head -n 1`
--- a/filter/sakura
+++ b/filter/sakura
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# hime filter sakura version 0.0.3
read -r -t 1 aa
echo -n $aa | \
--- a/filter/tw2jp
+++ b/filter/tw2jp
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# hime filter tw2jp version 0.0.2
read -r aa
MATCH=`tail -n 332 $0 | grep $aa | head -n 1`
--- a/filter/zh2jp
+++ b/filter/zh2jp
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# hime filter zh2jp version 0.0.2
read -r aa
MATCH=`tail -n 787 $0 | grep $aa | head -n 1`
--- a/filter/zh2tw
+++ b/filter/zh2tw
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# hime filter zh2tw version 0.0.3
read -r -t 1 aa
U2S=`echo -n $aa | iconv -f UTF-8 -t GB2312 -c`
--- a/scripts/gtab.append_prepare
+++ b/scripts/gtab.append_prepare
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
[ -f "$1" ] && exit 0
--- a/scripts/hime-env
+++ b/scripts/hime-env
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Copyright and license see bottom of this file
echo "====Detecting hime install===="
HIME_BINARY=$(whereis hime | cut -d ' ' -f 2)
--- a/scripts/tsin-gtab-import
+++ b/scripts/tsin-gtab-import
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
pushd "$HOME/.config/hime"
f="$1.append.gtab.tsin-db"
--- a/scripts/utf8-edit
+++ b/scripts/utf8-edit
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
PATH="$PATH:/opt/gnome/bin:/usr/local/bin"