国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > Linux Shell > 正文

linux安裝php擴展腳本分享

2020-07-27 19:18:46
字體:
來源:轉載
供稿:網友

測試環境:ubuntu 12.04 php 5.3.x

復制代碼 代碼如下:

#!/bin/bash
#Program:
# Accomplish to expand the specified function only one key
#History:
# 2013/11/15 pankai<530911044@qq.com> first release
test ! -f ./ext_skel && echo "The shell script of 'ext_skel' doesn't exist in current directory./n" && exit 0
[ ! -d "skeleton" ] && echo "The directory of 'skeleton' doesn't exist in current directory./n" && exit 0
#include "./ext_skel"
read -p "Please input the extension name: " ext_name
#echo -e "hello $ext_name"

#The blank space is necessary
#Error:
#  like: if[ ! -d "$ext_name" ]; then
if [ ! -d "$ext_name" ]; then
 ./ext_skel --extname=$ext_name
fi
file="./$ext_name/config.m4"
copy="./$ext_name/config"
if [ ! -f "./$ext_name/configs" ]; then
 # Create a new file and clear it if it exists
 :> "$copy"
 cat "$file" | while read line
 #for line in $( cat ./zend/config.m4 )
 do
  string=$( echo $line | grep 'PHP_ARG_ENABLE' )
  if [ "$string" != ""  ]; then
   echo $line | cut -c5- >> $copy
   read line
   echo $line | cut -c5- >> $copy
   read line
   echo $line | cut -c5- >> $copy
   read line
  fi
  echo $line >> $copy
 done
 mv "$file" "./$ext_name/configs"
 mv "$copy" "./$ext_name/config.m4"
fi
cd $ext_name
phpize
./configure

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 柏乡县| 平顶山市| 四川省| 梧州市| 威远县| 河津市| 石棉县| 盐亭县| 合作市| 资溪县| 沂源县| 宝山区| 蛟河市| 凤庆县| 浑源县| 宜黄县| 泉州市| 嘉鱼县| 三都| 鄂州市| 福泉市| 名山县| 汾阳市| 天镇县| 瑞丽市| 龙南县| 汽车| 来宾市| 鄂尔多斯市| 永城市| 尼勒克县| 通许县| 治多县| 伊金霍洛旗| 乌鲁木齐县| 隆回县| 内丘县| 鹤壁市| 江口县| 阿城市| 馆陶县|