summaryrefslogtreecommitdiff
path: root/devel/kde-dev-scripts/patches/patch-uncrustify-kf5
blob: 2c1c4d97f380304250f50a6a2beb796850f43f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$NetBSD: patch-uncrustify-kf5,v 1.1 2019/11/25 10:07:31 markd Exp $

fix test ==

--- uncrustify-kf5.orig	2019-11-25 09:27:21.260113613 +0000
+++ uncrustify-kf5
@@ -53,14 +53,14 @@ if [ -z "$files" ]; then
   exit 0
 fi
 
-if test -z "$QT_NORMALIZE_TOOL" && test "$ignore_connects" == "0"; then
+if test -z "$QT_NORMALIZE_TOOL" && test "$ignore_connects" = "0"; then
   echo "Please export QT_NORMALIZE_TOOL=<qt5>/qtrepotools/util/normalize/normalize"
   exit 1
 fi
 
 cfg=uncrustify.cfg
 if ! test -f "$cfg"; then
-  if test "$qt" == "1"; then
+  if test "$qt" = "1"; then
     cfgfile=uncrustify-qt.cfg
   else
     cfgfile=uncrustify-kf5.cfg
@@ -120,11 +120,11 @@ perl - $files <<EOF
 EOF
 
 # Normalize signals/slots
-if test -n "$QT_NORMALIZE_TOOL" && test "$ignore_connects" == "1"; then
+if test -n "$QT_NORMALIZE_TOOL" && test "$ignore_connects" = "1"; then
   $QT_NORMALIZE_TOOL --modify .
 fi
 
-if test "$commit" == "1"; then
+if test "$commit" = "1"; then
   git commit -q -a -m "Code reformatted using kde-dev-scripts/`basename $0`"
 fi