Here's the minimal edit I can thing of for the bash example found in the p4 docs :! /bin/sh # Set target string, files to search, location of p4 executable... TARGET='\r\n' DEPOT_PATH="//depot/src/..." CHANGE=$1 P4CMD="/usr/local/bin/p4 -p 1666 -c copychecker" XIT=0 echo "" # For each file, strip off #version and other non-filename info # Use sed to swap spaces w/"%" to obtain single arguments for "for" for FILE in ‘$P4CMD files $DEPOT_PATH@=$CHANGE | \ sed -e 's/\(.*\)\#0-9* - . *$/\1/' -e 's/ /%/g'‘ do # Undo the replacement to obtain filename... FILE="‘echo $FILE | sed -e 's/%/ /g'‘" # ...and use @= specifier to access file contents: # p4 print -q //depot/src/file.
C@=12345 if $P4CMD print -q "$FILE@=$CHANGE" | fgrep "$TARGET" > /dev/null then echo "Submit fails: '$TARGET' not found in $FILE" XIT=1 else echo "" fi done exit $XIT The original example fails if the target is missing, this one fails if it's present -- just switching the then and else branches of the if You could edit it further of course (e.g. Giving grep or fgrep the q flag to suppress output, if your grep supports it as e.g. GNU's does).
Here's the minimal edit I can thing of for the bash example found in the p4 docs: #! /bin/sh # Set target string, files to search, location of p4 executable... TARGET='\r\n' DEPOT_PATH="//depot/src/..." CHANGE=$1 P4CMD="/usr/local/bin/p4 -p 1666 -c copychecker" XIT=0 echo "" # For each file, strip off #version and other non-filename info # Use sed to swap spaces w/"%" to obtain single arguments for "for" for FILE in ‘$P4CMD files $DEPOT_PATH@=$CHANGE | \ sed -e 's/\(.*\)\#0-9* - . *$/\1/' -e 's/ /%/g'‘ do # Undo the replacement to obtain filename... FILE="‘echo $FILE | sed -e 's/%/ /g'‘" # ...and use @= specifier to access file contents: # p4 print -q //depot/src/file.
C@=12345 if $P4CMD print -q "$FILE@=$CHANGE" | fgrep "$TARGET" > /dev/null then echo "Submit fails: '$TARGET' not found in $FILE" XIT=1 else echo "" fi done exit $XIT The original example fails if the target is missing, this one fails if it's present -- just switching the then and else branches of the if. You could edit it further of course (e.g. Giving grep, or fgrep, the -q flag to suppress output, if your grep supports it as e.g. GNU's does).
I'm just getting started using GitHub, Gerrit, and Hudson(Jenkins) together. And I need some thoughts on workflow. We'd like to use GitHub as our main remote repo.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.