Skip to content

Commit 9f5cb62

Browse files
Mizunashi Manapetk
authored andcommitted
Fix #77041: buildconf should output error messages to stderr
1 parent 4be0528 commit 9f5cb62

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

build/buildcheck.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ fi
3131
# autoconf 2.59 or newer
3232
ac_version=`$PHP_AUTOCONF --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
3333
if test -z "$ac_version"; then
34-
echo "buildconf: autoconf not found."
35-
echo " You need autoconf version 2.59 or newer installed"
36-
echo " to build PHP from Git."
34+
echo "buildconf: autoconf not found." >&2
35+
echo " You need autoconf version 2.59 or newer installed" >&2
36+
echo " to build PHP from Git." >&2
3737
exit 1
3838
fi
3939
IFS=.; set $ac_version; IFS=' '
4040
if test "$1" = "2" -a "$2" -lt "59" || test "$1" -lt "2"; then
41-
echo "buildconf: autoconf version $ac_version found."
42-
echo " You need autoconf version 2.59 or newer installed"
43-
echo " to build PHP from Git."
41+
echo "buildconf: autoconf version $ac_version found." >&2
42+
echo " You need autoconf version 2.59 or newer installed" >&2
43+
echo " to build PHP from Git." >&2
4444
exit 1
4545
else
4646
echo "buildconf: autoconf version $ac_version (ok)"

build/genif.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ awk=$1
1313
shift
1414

1515
if test -z "$infile" || test -z "$srcdir"; then
16-
echo "please supply infile and srcdir"
16+
echo "please supply infile and srcdir" >&2
1717
exit 1
1818
fi
1919

buildconf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ while test $# -gt 0; do
2828
done
2929

3030
if test "$dev" = "0" -a "$devok" = "0"; then
31-
echo "You should not run buildconf in a release package."
32-
echo "use buildconf --force to override this check."
31+
echo "You should not run buildconf in a release package." >&2
32+
echo "use buildconf --force to override this check." >&2
3333
exit 1
3434
fi
3535

makedist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ DIR=php-$VER
6565
DIRPATH=$MY_OLDPWD/$DIR
6666

6767
if test -d "$DIRPATH"; then
68-
echo "The directory $DIR"
69-
echo "already exists, rename or remove it and run makedist again."
68+
echo "The directory $DIR" >&2
69+
echo "already exists, rename or remove it and run makedist again." >&2
7070
exit 1
7171
fi
7272

0 commit comments

Comments
 (0)