REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.60 KB
Close
/proc/thread-self/root/proc/thread-self/root/usr/local/lsws/admin/html.6.3.1/utility/build_php/build_prepare_ext.template
Text
Base64
########################################### EXTENSION_NAME="__extension_name__" EXTENSION_SRC=__extension_src__ EXTRACT_METHOD="__extract_method__" EXTENSION_DIR="__extension_dir__" EXTENSION_DOWNLOAD_URL="__extension_download_url__" ########################################### echo "=============================================================" main_msg "Preparing source code for building ${EXTENSION_NAME} Extension" echo "=============================================================" echo "" echo "Changing to build directory ${PHP_BUILD_DIR}" cd ${PHP_BUILD_DIR} check_errs $? "Could not get into build directory" if [ -e "${EXTENSION_SRC}" ] ; then main_msg "${EXTENSION_SRC} already downloaded, use the saved copy." NEW_DOWNLOAD=N else main_msg "Retrieving ${EXTENSION_NAME} extension source archive ${EXTENSION_DOWNLOAD_URL}" ${DL_METHOD} ${EXTENSION_SRC} ${EXTENSION_DOWNLOAD_URL} check_errs $? "Fail to retrieve ${EXTENSION_NAME} extension source archive" echo "" NEW_DOWNLOAD=Y fi echo "Changing to build directory php-${PHP_VERSION}" cd php-${PHP_VERSION} check_errs $? "Could not get into build directory" echo "Copying ${EXTENSION_NAME} extension source archive" cp ../${EXTENSION_SRC} . check_errs $? "Could not copy" main_msg "Extracting ${EXTENSION_NAME} extension source archive: ${EXTRACT_METHOD} ${EXTENSION_SRC}" ${EXTRACT_METHOD} ${EXTENSION_SRC} if [ "$?" -ne "0" ] ; then # remove bad copy rm -f ${EXTENSION_SRC} ../${EXTENSION_SRC} check_errs $? "Fail to remove bad copy ${EXTENSION_SRC}" if [ "${NEW_DOWNLOAD}" = "Y" ] ; then check_errs 1 "Could not extract ${EXTENSION_NAME} extension source archive" else main_msg "Failed to extract existing copy. try download again." main_msg "Retrieving ${EXTENSION_NAME} extension source archive ${EXTENSION_DOWNLOAD_URL}" ${DL_METHOD} ../${EXTENSION_SRC} ${EXTENSION_DOWNLOAD_URL} check_errs $? "Fail to retrieve ${EXTENSION_NAME} extension source archive" NEW_DOWNLOAD=Y cp ../${EXTENSION_SRC} . check_errs $? "Could not copy" main_msg "Extracting ${EXTENSION_NAME} extension source archive: ${EXTRACT_METHOD} ${EXTENSION_SRC}" ${EXTRACT_METHOD} ${EXTENSION_SRC} if [ "$?" -ne "0" ] ; then # remove bad copy rm -f ${EXTENSION_SRC} ../${EXTENSION_SRC} check_errs $? "Fail to remove bad copy ${EXTENSION_SRC}" check_errs 1 "Could not extract ${EXTENSION_NAME} extension source archive" fi fi fi echo "=============================================================" main_msg "Finished gathering source code for building ${EXTENSION_NAME} extension" echo "============================================================="
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 14
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
buildconf.inc.php
1.96 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buildfunc.inc.php
26.81 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buildPHP.php
567 B
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buildProgress.php
367 B
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buildStep1.php
1.45 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buildStep2.php
9.35 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buildStep3.php
3.46 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buildStep4.php
4.22 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build_common.template
565 B
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build_install.template
4.00 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build_install_ext.template
1.72 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build_manual_run.template
1.05 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build_prepare.template
5.29 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build_prepare_ext.template
2.60 KB
lrw-r--r--
2025-02-04 14:15:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).