openbsd-ports/graphics/libgexiv2/patches/patch-configure
2012-02-26 15:08:36 +00:00

41 lines
1.0 KiB
Plaintext

$OpenBSD: patch-configure,v 1.4 2012/02/26 15:08:36 ajacoutot Exp $
--- configure.orig Mon Feb 13 22:09:13 2012
+++ configure Sun Feb 26 15:11:03 2012
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/bin/sh
#
# Copyright 2011-2012 Yorba Foundation
#
@@ -30,7 +30,8 @@ abort() {
while [ $# != 0 ]
do
option=`echo $1 | sed 's/=.*//'`
- if [ `echo $1 | grep '='` ]
+ value=
+ if [ "`echo $1 | grep '='`" ]
then
value=`echo $1 | sed 's/.*=//'`
fi
@@ -65,7 +66,7 @@ do
--release) variables="${variables}BUILD_DEBUG=\nBUILD_RELEASE=1\n"
;;
- *) if [ ! $value ]
+ *) if [ ! "$value" ]
then
abort $1
fi
@@ -78,9 +79,9 @@ do
done
rm -f $CONFIG_IN
-if [ $variables ]
+if [ "$variables" ]
then
- echo -e -n $variables > $CONFIG_IN
+ echo -e -n "$variables" > $CONFIG_IN
fi
echo "CONFIG_IN=${CONFIG_IN}" >> $CONFIG_IN