歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 27, 2024, 06:11:33 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  測試  |  LifeType 1.0 測試  |  建议config.properties.php更名为config.properties.php.ne « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 建议config.properties.php更名为config.properties.php.ne  (閱讀 9964 次)
tyyx
新手見習
*
文章: 14


檢視個人資料
« 於: 三月 18, 2005, 08:04:41 上午 »

建议config.properties.php更名为config.properties.php.new
每次更新都将原来的覆盖了. 害羞
已記錄
cody
新手見習
*
文章: 39


檢視個人資料
« 回覆文章 #1 於: 三月 18, 2005, 09:31:27 上午 »

自己建個更新 script ~
把相關資料寫到 script~
覆蓋完後,跑這個 script 就好了~
#!/bin/sh
cp -f ./config/config.properties.php-back config.properties.php
rm -f ./templates/summary/agreement.template
rm -f ./templates/summary/index.template
iconv -f big5 -t utf-8 ./templates/summary/index.template-big5 > ./templates/summary/index.template
iconv -f big5 -t utf-8 ./templates/summary/agreement.template-big5 > ./templates/summary/agreement.template
find ./templates/* -name "*.template" | \xargs perl -pi -e "s,\|capitalize, ,"
.
.
.
.
反正常做的寫成 script 就好啦~
我不喜歡用 svn~
我喜歡寫成 script 每天自己去 fetch 最新檔案,系統自動幫我覆蓋更新~
已記錄
頁: [1]
LifeType 中文開發論壇  |  測試  |  LifeType 1.0 測試  |  建议config.properties.php更名为config.properties.php.ne « 上篇主題 下篇主題 »
    前往: