Created
May 30, 2012 09:49
-
-
Save hpcx82/2835224 to your computer and use it in GitHub Desktop.
Create a changelist from command line
This file contains hidden or 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
# | |
# create a named changelist with certain description | |
# | |
# Usages: | |
# p4change | |
# p4change "This is my changelist" | |
# | |
if [ ! "$1" ] | |
then | |
CL_DESC="New changelist with default description." | |
else | |
CL_DESC=$* | |
fi | |
# echo $CL_DESC; | |
p4 change -o | sed "s/<enter description here>/$CL_DESC/" | p4 change -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment