Created
June 23, 2012 15:40
-
-
Save mshuler/2978709 to your computer and use it in GitHub Desktop.
Fetch Mozilla certdata.txt via CVS
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
#!/bin/sh | |
#wget http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1 \ | |
# -O /tmp/certdata.txt | |
VCS=cvs | |
REPODIR=~/repos/$VCS/mozilla_certdata | |
CVSROOT=":pserver:[email protected]:/cvsroot" | |
CERTDATA="mozilla/security/nss/lib/ckfw/builtins/certdata.txt" | |
VCS_COMMAND="$VCS -d $CVSROOT checkout $CERTDATA" | |
if [ -d $REPODIR ]; then | |
( | |
cd $REPODIR | |
if $VCS_COMMAND; then | |
echo "=== certdata.txt detail ===" | |
grep --color=auto '^CVS_ID' $CERTDATA | |
ls -l $REPODIR/$CERTDATA | |
fi | |
) | |
else | |
echo "$REPODIR not found.." | |
fi | |
echo "done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment