Skip to content

Commit d25cbb0

Browse files
committed
Add rebuild function to rebuild PHP extensions
1 parent 6d4f8c9 commit d25cbb0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

home/.functions

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,10 @@ function usephp () {
163163
function resolve () {
164164
alias | grep "alias $1="
165165
}
166+
167+
# `rebuild` to completely rebuild the MongoDB PHP extension
168+
function rebuild () {
169+
phpize > /dev/null && \
170+
./configure --enable-mongodb-developer-flags > /dev/null && \
171+
make clean && make all -j20 > /dev/null && make install
172+
}

0 commit comments

Comments
 (0)