From 50fb79ebf86cc59e0eb9681be4f905aa32baa96c Mon Sep 17 00:00:00 2001 From: Brodie Rao Date: Fri, 24 Dec 2021 11:46:24 -0800 Subject: [PATCH] README/NEWS: Fix broken links --- NEWS.rst | 2 +- README.rst | 32 ++++++++------------------------ 2 files changed, 9 insertions(+), 25 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index 2c3613e2..02705d18 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -152,7 +152,7 @@ Version 0.4 (Sep. 28, 2010) * Added `contrib/cram.vim`_ syntax file for Vim. Contributed by `Steve Losh`_. -.. _contrib/cram.vim: https://bitbucket.org/brodie/cram/src/default/contrib/cram.vim +.. _contrib/cram.vim: https://github.com/brodie/cram/blob/0.7/contrib/cram.vim .. _Steve Losh: http://stevelosh.com/ diff --git a/README.rst b/README.rst index d19b83be..eab6e73e 100644 --- a/README.rst +++ b/README.rst @@ -9,18 +9,9 @@ command's actual output. Here's a snippet from `Cram's own test suite`_:: - The $PYTHON environment variable should be set when running this test - from Python. - - $ [ -n "$PYTHON" ] || PYTHON="`which python`" - $ [ -n "$PYTHONPATH" ] || PYTHONPATH="$TESTDIR/.." && export PYTHONPATH - $ if [ -n "$COVERAGE" ]; then - > coverage erase - > alias cram="`which coverage` run --branch -a $TESTDIR/../scripts/cram" - > else - > alias cram="$PYTHON $TESTDIR/../scripts/cram" - > fi - $ command -v md5 > /dev/null || alias md5=md5sum + Set up cram alias and example tests: + + $ . "$TESTDIR"/setup.sh Usage: @@ -76,7 +67,7 @@ The format in a nutshell: * Anything else is a comment. -.. _Cram's own test suite: https://bitbucket.org/brodie/cram/src/0.6/tests/cram.t +.. _Cram's own test suite: https://github.com/brodie/cram/blob/0.7/tests/usage.t .. _Perl-compatible regular expressions: https://en.wikipedia.org/wiki/Perl_Compatible_Regular_Expressions @@ -196,17 +187,13 @@ a test, try adding the ``-n`` option to prevent it from closing waiting for the test shell's ``stdout`` to be fully closed. .. _unified context diff: https://en.wikipedia.org/wiki/Diff#Unified_format -.. _its own example tests: https://bitbucket.org/brodie/cram/src/default/examples/ +.. _its own example tests: https://github.com/brodie/cram/tree/0.7/examples Development ----------- -Download the official development repository using Mercurial_:: - - hg clone https://bitbucket.org/brodie/cram - -Or Git_:: +Download the official development repository using Git_:: git clone https://github.com/brodie/cram.git @@ -215,11 +202,8 @@ Test Cram using Cram:: pip install -r requirements.txt make test -Visit Bitbucket_ or GitHub_ if you'd like to fork the project, watch -for new changes, or report issues. +Visit GitHub_ if you'd like to fork the project, watch for new changes, or +report issues. -.. _Mercurial: http://mercurial.selenic.com/ .. _Git: http://git-scm.com/ -.. _coverage.py: http://nedbatchelder.com/code/coverage/ -.. _Bitbucket: https://bitbucket.org/brodie/cram .. _GitHub: https://github.com/brodie/cram