转自: http://tomboxfan.javaeye.com/blog/315066
Step 1) Find where perforce is installed on the unix box.
Say this folder: /home/pvprapp1/opt/perforce
Step 2) Export the environment variable.
Issue command: EXPORT PATH=$PATH:$HOME/opt/perforce/bin
Issue command: EXPORT P4PORT=...net:1999
Step 3) At this time, you can issue p4 command, and see a help menu.
Issue command: p4
Step 4) Config the client setup.
Issue command: p4 client
Step 5) The above command will bring you to a vi editor. There, you can edit all the configurations.
Client:
Root:
View:
Issue command: EXPORT P4CLIENT=
In your later uage, you need to put your 3 EXPORT(PATH, P4PORT, P4CLIENT) into your .bashrc in your ~ folder.
Step 6) Synchronize with Perforce to get all the source code
Issue command: p4 sync
No comments:
Post a Comment