1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| //補丁 For 單一檔案 #產生 補丁 檔案: cd Program-Folder diff -Nu Old-File New-File > Patch-File # Patch-File 是一個補丁檔, 他可以使用在其他用戶上
#為檔案打補丁: cd Program-Folder patch -p 1 < Patch-File patch -R -p 1 < Patch-File # 如果你想解除補丁
// 補丁 For 目錄 # 產生 補丁 檔案 diff -rNu Old-File New-File > Patch-File # 不需要在 Program-Folder 中執行此指令
# 為目錄打補丁: patch -p 0 < Patch-File patch -R -p 0 < patch_file # 如果你想解除補丁,一般用 -R
|