Hi! I’m clsung

Hi! I’m clsung

clsung’s blog site, or you can call me AlanSung

Hi! I’m clsung RSS Feed
 
 
 
 

[WP] 升級到 2.0.1

其實我不太會 shell script,所以…

用了很笨的方法把有變動的檔案找出來,再一行一行去執行:

diff -ruN wordpress_2.0/ wordpress_2.0.1/
| grep ‘diff -ruN’ 
| awk ‘{print "sudo cp " $4 " " gensub("wordpress_2.0", my_blog_path, 1,$3);}’

反正主要是找出有哪些變動啦(我有把 WP2.0 與 WP2.0 .1 都保留下來比較),因為我不想每次都要砍掉重練 :p

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • funp
  • Haohao
  • Hemidemi
  • Live
  • MisterWong
  • TwitThis
  • udn

3 Responses to “[WP] 升級到 2.0.1”

  1. 1
    jeffhung:

    用 diff + patch 應該比較簡單些。

    我是乾脆直接用 Subversion checkout 安裝,要升級時下個

    SHELL> svn update

    或是

    SHELL> svn switch

    即可,local change 也會保留。

  2. 2
    clsung:

    唔,其實這就是 diff + patch 的變相啦 (我都用了 diff -ruN 了 :p)

    只是我想一個個檔弄罷了 :p

  3. 3
    something about matt …:

    [...] 不過有許多高手有其他較為安全的升級法,像是用 SVN checkout 啦,或是用 diff 比對差異… [...]

Leave a Reply

噗浪:

分類

Flickr

    clsung. Get yours at bighugelabs.com/flickr

Blogroll

    馬的警總回來了
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan