一:linux用戶端(perforce用戶端 本例在debian)
1.安裝 get
2.把解壓的p4程式放到/usr/bin/p4 //(隻要放到PATH路徑中就行)要保證系統程式能找到
3.聲明P4PORT環境變量 export P4PORT=x.x.x.x:port //聲明perforce server
二:perforce server(本例在windowss)
1.建立一個workspace 如:perforcetest
2.更改這個workspace屬性:把Host:改成上面linux用戶端機器的hostname如:PVZS-FEATURE
Root:改成上面linux用戶端機器你要盛放檔案的目錄如:/opt/perforce-linux-workspace
以上配置好了以後
三:使用p4指令利用sync傳輸檔案
1.p4 -u username -Cutf8 login //perforce的使用者名
輸入密碼:
Enter password:
User svc_p4_ro logged in.
2.p4 -usvc_p4_ro -cperforcetest02(這個就是上面建立的workspace名字) -Cutf8 sync -f //depot/FlashGames/PVZ_Street/CBT_Releases/20110620/client.tar.gz
(後面這個是perforce server上的檔案路徑)
3.現在你的/opt/perforce-linux-workspace中就有了剛傳過來的檔案
另附:p4常用指令
1.p4 info可以檢視目前的p4的環境變量
閱讀(3454) | 評論(0) | 轉發(0) |