Cvs update output is bad, use it with grep

From Andreida
Revision as of 11:40, 16 February 2016 by Andreas (talk | contribs) (Created page with "This works of course only for the english language, so perhaps you'll have to change it. (-n -> don't do anyting) <pre> cat cvsupdate #!/bin/bash cvs -n up 2>&1| grep -v 'cvs...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This works of course only for the english language, so perhaps you'll have to change it. (-n -> don't do anyting)

cat cvsupdate

#!/bin/bash
cvs -n up 2>&1| grep -v 'cvs update: Updating'

To do this for some dirs at once:

cat cvsupdate-all

#!/bin/bash
for file in ~/work/Pr*
    do
        cd $file
        #pwd
        cvsupdate
done

example to do cvs up for some dirs at once and do some stuff or each dir and do some stuff afterwards:

cat cvs-up-all

#!/bin/bash
for file in ~/work/Pr*
    do
        cd $file
        pwd
        cvs update -dP
        make develop
done

createxml