Skip to content

Commit a9c751b

Browse files
committed
Minor cleanup
1 parent 62a2a61 commit a9c751b

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

install-development

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ if [ "${PHP_FULL_VERSION:0:3}" == "5.3" ]; then
100100
exit 1
101101
fi
102102

103-
cd ${PARSER_DIR}
104-
105103
# Cleanup
104+
105+
rm -rf .libs
106+
107+
cd ${PARSER_DIR}
106108
rm -f \
107109
*.o \
108110
*.lo \
@@ -114,7 +116,10 @@ rm -f \
114116
parser.php5.out \
115117
parser.php7.c \
116118
parser.php7.h \
117-
parser.php7.out
119+
parser.php7.out \
120+
parser.loT
121+
122+
rm -rf .libs
118123

119124
${RE2C_BIN} -o scanner.c scanner.re
120125

@@ -144,8 +149,6 @@ sed s/"#line"/"\/\/"/g parser.c > xx && mv -f xx parser.c
144149

145150
cd ${CURRENT_DIR}
146151

147-
echo
148-
149152
# Clean current compilation
150153
if [ -f Makefile ]; then
151154
make clean
@@ -160,5 +163,12 @@ ${PHPIZE_BIN}
160163

161164
make -j"$(getconf _NPROCESSORS_ONLN)"
162165

163-
echo -e "\nThanks for compiling Zephir Parser!\nBuild succeed: Please restart your web server to complete the installation\n"
166+
exit_status=$?
167+
168+
if [ ! $exit_status -eq 0 ]; then
169+
echo -e "\nSomething went wrong.\nCheck logs and/or output to determine issue.\n"
170+
else
171+
echo -e "\nBuild succeed.\n"
172+
fi
164173

174+
exit $exit_status

tests/globals/001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
zephir_parse_file() - Tests class variables
2+
zephir_parse_file() - Tests using globals
33
--SKIPIF--
44
<?php require(__DIR__ . "/../zephir_parser_skip.inc"); ?>
55
--FILE--

0 commit comments

Comments
 (0)