91 lines
1.8 KiB
Diff
91 lines
1.8 KiB
Diff
From 7fc8ea28893dea8c61bc14a902b0d9f4e3de4826 Mon Sep 17 00:00:00 2001
|
|
From: wu-leilei <wu18740459704@163.com>
|
|
Date: Tue, 27 Jul 2021 15:14:17 +0800
|
|
Subject: [PATCH] shift count out of range
|
|
|
|
---
|
|
buildsystems/autotools/gtkdocize.in | 52 ++++++++++++++++++++++-------
|
|
1 file changed, 40 insertions(+), 12 deletions(-)
|
|
|
|
diff --git a/buildsystems/autotools/gtkdocize.in b/buildsystems/autotools/gtkdocize.in
|
|
index 83127bf..7e15bd8 100755
|
|
--- a/buildsystems/autotools/gtkdocize.in
|
|
+++ b/buildsystems/autotools/gtkdocize.in
|
|
@@ -25,9 +25,16 @@ args="$*"
|
|
while test $# -gt 0; do
|
|
case "$1" in
|
|
--srcdir)
|
|
- shift
|
|
- srcdir="$1"
|
|
- shift ;;
|
|
+ if test $# -gt 1; then
|
|
+ shift
|
|
+ srcdir="$1"
|
|
+ shift
|
|
+ elif test $# -eq 1; then
|
|
+ shift
|
|
+ else
|
|
+ :
|
|
+ fi
|
|
+ ;;
|
|
--srcdir=*)
|
|
srcdir=`expr "X$1" : '[^=]*=\(.*\)'`
|
|
shift ;;
|
|
@@ -83,23 +90,44 @@ while test $# -gt 0; do
|
|
copy=yes
|
|
shift ;;
|
|
--docdir)
|
|
- shift
|
|
- docdir="$1"
|
|
- shift ;;
|
|
+ if test $# -gt 1; then
|
|
+ shift
|
|
+ docdir="$1"
|
|
+ shift
|
|
+ elif test $# -eq 1; then
|
|
+ shift
|
|
+ else
|
|
+ :
|
|
+ fi
|
|
+ ;;
|
|
--docdir=*)
|
|
docdir=`expr "X$1" : '[^=]*=\(.*\)'`
|
|
shift ;;
|
|
--flavour)
|
|
- shift
|
|
- flavour="$1"
|
|
- shift ;;
|
|
+ if test $# -gt 1; then
|
|
+ shift
|
|
+ flavour="$1"
|
|
+ shift
|
|
+ elif test $# -eq 1; then
|
|
+ shift
|
|
+ else
|
|
+ :
|
|
+ fi
|
|
+ ;;
|
|
--flavour=*)
|
|
flavour=`expr "X$1" : '[^=]*=\(.*\)'`
|
|
shift ;;
|
|
--srcdir)
|
|
- shift
|
|
- # srcdir was set earlier.
|
|
- shift ;;
|
|
+ if test $# -gt 1; then
|
|
+ shift
|
|
+ # srcdir was set earlier.
|
|
+ shift
|
|
+ elif test $# -eq 1; then
|
|
+ shift
|
|
+ else
|
|
+ :
|
|
+ fi
|
|
+ ;;
|
|
--srcdir=*)
|
|
# srcdir was set earlier.
|
|
shift ;;
|
|
--
|
|
2.23.0
|
|
|