Created
April 12, 2012 01:58
-
-
Save hewigovens/2364246 to your computer and use it in GitHub Desktop.
perforce auto integration shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "setting perforce env..." | |
export P4PORT= | |
export P4EDITOR=vim | |
export P4PASSWD= | |
export P4USER= | |
export P4CLIENT= | |
REMOTE_DEV_TREE= | |
REMOTE_INT_TREE= | |
LOCAL_DEV_TREE= | |
LOCAL_INT_TREE= | |
COMMIT_MESSAGE="Integrate from Dev >> Int" | |
echo "start integrating from $REMOTE_DEV_TREE to $REMOTE_INT_TREE..." | |
p4 login -a <<< "$P4PASSWD" | |
p4 revert -a | |
p4 -c "$P4CLIENT" integrate -i "$REMOTE_DEV_TREE" "$REMOTE_INT_TREE" | |
p4 -c "$P4CLIENT" resolve -at | |
p4 -c "$P4CLIENT" submit -d "$COMMIT_MESSAGE" | |
echo "integrating complete." | |
echo "start syncing local Dev and Int trees" | |
p4 -c "$P4CLIENT" sync "$LOCAL_DEV_TREE" | |
p4 -c "$P4CLIENT" sync "$LOCAL_INT_TREE" | |
echo "syncing local Dev and Int trees complete." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment