1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 40_bashisms.dpatch by Julien Danjou <acid@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix bashism in stop script.
8
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' steam-2.2.31~/stop steam-2.2.31/stop
9
--- steam-2.2.31~/stop 2010-03-16 09:43:35.000000000 +0700
10
+++ steam-2.2.31/stop 2010-03-16 09:44:02.000000000 +0700
15
- [ "$tmp_option" == "--force" ] && cat_func='cat'
16
+ [ "$tmp_option" = "--force" ] && cat_func='cat'
17
# Extract options and values (format: option=value):
18
option=${tmp_option%%=*}
19
value=${tmp_option#*=}
20
- [ "$option" == "$tmp_option" ] && value=
21
+ [ "$option" = "$tmp_option" ] && value=
23
- [ "$option" == "--pid" ] && pidfile=$value
24
- [ "$option" == "--pidfile" ] && pidfile=$value
25
+ [ "$option" = "--pid" ] && pidfile=$value
26
+ [ "$option" = "--pidfile" ] && pidfile=$value
28
[ -e "$pidfile" ] && kill `$cat_func $pidfile`
29
while test -e "$pidfile"