components/quilt/patches/06-refresh-z.patch
author Stefan Teleman <stefan.teleman@oracle.com>
Wed, 14 Aug 2013 12:01:30 -0700
branchs11-update
changeset 2731 d2ccaa434c25
parent 327 b3a36ee93012
permissions -rw-r--r--
17213162 include/loc/_collate.h (collate_byname) should be a virtual destructor 17061683 stdcxx needs extra stuff in the license attribution

Someday, when Solaris has GNU getopts, we won't need this kludge.  This allows
test/refresh-z to pass where it wants to use -z without a name argument.

Index: quilt/refresh.in
===================================================================
--- quilt/refresh.in.orig	2008-11-05 14:11:23.795325000 -0600
+++ quilt/refresh.in	2008-11-05 14:20:40.965293000 -0600
@@ -117,7 +117,12 @@ do
 	-z)
 		opt_fork=1
 		opt_new_name=$2
-		shift 2 ;;
+		shift 2
+		if [ "$opt_new_name" = "--" ]
+		then
+			opt_new_name=
+			break;
+		fi ;;
 	-h)
 		usage -h ;;
 	--no-timestamps)