$NetBSD: patch-aa,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $

--- build_packages.sh.orig	2009-01-11 01:44:33.000000000 +0100
+++ build_packages.sh
@@ -3,7 +3,7 @@
 version=`cat fbreader/VERSION`
 tmpdir=fbreader-$version
 
-if [ "$1" == "-non-GPL" ]; then
+if [ "$1" = "-non-GPL" ]; then
 	distdir=distributions-nonGPL
 	pkgdir=packages-nonGPL
 	prepare_nonGPL=true
@@ -35,7 +35,7 @@ create_tmpdir() {
 	rm -rf `find $tmpdir -name ".svn"`
 	make -C $tmpdir distclean 1> /dev/null 2>&1
 
-	if [ "$prepare_nonGPL" == "true" ]; then
+	if [ "$prepare_nonGPL" = "true" ]; then
 		pushd $tmpdir > /dev/null;
 		echo -en "Removing Arabic localization... ";
 		rm -rf fbreader/data/resources/ar.xml zlibrary/core/data/resources/ar.xml fbreader/data/help/MiniHelp.*.ar.fb2;
@@ -114,7 +114,7 @@ build_package() {
 	esac;
 }
 
-if [ $1 == all ]; then
+if [ $1 = all ]; then
 	create_tmpdir
 	for pkgtype in $distdir/*; do
 		for archtype in $pkgtype/*; do
@@ -128,7 +128,7 @@ else
 		pkgtype=`echo $1 | cut -d "-" -f 2`;
 		extra=`echo $1 | cut -d "-" -f 3`;
 
-		if [ "$pkgtype" != "" -a "$extra" == "" -a -d $distdir/$pkgtype/$archtype ]; then
+		if [ "$pkgtype" != "" -a "$extra" = "" -a -d $distdir/$pkgtype/$archtype ]; then
 			create_tmpdir
 			build_package $archtype $pkgtype
 			remove_tmpdir
