1. Set up user information
Export p4port=perforce-toolchain.eng.vmware.com:1666 && Export p4client=build-toolchain-centos5-32-dev31 && Export P4USER=SHAOXINW
Export path= $PATH:/build/apps/bin
2.P4 Operation Command
$ p4-h//view Help information
$ P4 Changes | grep shaoxinw//view SHAOXINW modified Changelist
$ P4 changes-s pending-u SHAOXINW//view SHAOXINW modified status Pending
$ P4 Change 1037167//changelist version number is 1037167
$ P4 change-d 1037167//removed from Changelist 1037167
$ P4 Client
Root:/home/tcuser/workspace//Working space
View:
toolchain/main/src///build-toolchain-centos5-32-dev31/src/...//client relative root first-level path
toolchain/main/lin32/...//build-toolchain-centos5-32-dev31/lin32/...
Client machine Name
3. Verify that the compilation is successful
STRINGS-A * | Grep-i OpenSSL |less//view compiled packages
Find.. /.. /lin32/pwdutils-3.0-1/-type f-exec strings-f {} \; | grep ": OpenSSL [0-9]" | More
Post-review 1037167--submit-as= "shaoxinw"--user= "SHAOXINW"
$ P4 submit-c 1037167//Local submit file to server
4. Encountering Errors and Solutions
Error
* You must fix these errors before submitting:
*-"Review URL" is required.
SOLVE:P4 Change NUM
Add Post-review URL
http://blog.csdn.net/xiaoxinyu316/article/details/30067659