~ubuntu-branches/ubuntu/wily/steam/wily-proposed

« back to all changes in this revision

Viewing changes to debian/patches/40_bashisms.dpatch

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-10-29 19:51:18 UTC
  • mfrom: (1.1.4) (0.1.4 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131029195118-b9bxciz5hwx5z459
Tags: 1:1.0.0.39-2ubuntu1
Add an epoch to the version number as there was an unrelated steam package
in the archive with a higher version number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
## 40_bashisms.dpatch by Julien Danjou <acid@debian.org>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: Fix bashism in stop script.
6
 
 
7
 
@DPATCH@
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
11
 
@@ -3,14 +3,14 @@
12
 
 cat_func="head -n 1"
13
 
 for tmp_option in $@
14
 
 do
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=
22
 
         # Check options:
23
 
-        [ "$option" == "--pid" ] && pidfile=$value
24
 
-        [ "$option" == "--pidfile" ] && pidfile=$value
25
 
+        [ "$option" = "--pid" ] && pidfile=$value
26
 
+        [ "$option" = "--pidfile" ] && pidfile=$value
27
 
 done
28
 
 [ -e "$pidfile" ] && kill `$cat_func $pidfile`
29
 
 while test -e "$pidfile"