Skip to content

Commit

Permalink
BUILDING and hacking instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Jan 25, 2011
1 parent d4bd1f0 commit 7f63568
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
34 changes: 34 additions & 0 deletions BUILDING
@@ -0,0 +1,34 @@
BUILDING rdiscount
==================

You'll be needing Ruby, rake, and a basic build environment.

Build the rdiscount extension for tests and local development:

$ rake build

Use your rdiscount working copy when running ruby programs:

$ export RUBYLIB=~/rdiscount/lib:$RUBYLIB
$ ruby some-program.rb

Gathering changes from an upstream Orc/discount.git clone requires first
grabbing the discount submodule into the root of the project and then running
the rake gather task to copy discount source files into the ext/ directory:

$ git submodule init
Submodule 'discount' (git://github.com/rtomayko/discount.git) registered for path 'discount'
$ rake gather
$ rake build

The rtomayko/discount.git repository's master branch is the default submodule
head. It exists to merge branches for rdiscount specific patches to the upstream
discount codebase.

Do work in the submodule and then add a remote for your clone THAT YOU FORKED ON
GITHUB BECAUSE YOU'RE GOING TO SEND ME A PULL REQUEST. After you've committed
your great changes somewhere, push them up with:

$ cd discount
$ git remote add you git@github.com:you/discount.git
$ git push you HEAD:topic-branch-name
3 changes: 3 additions & 0 deletions README.markdown
Expand Up @@ -31,7 +31,10 @@ The RDiscount sources are available via Git:
$ cd rdiscount
$ rake --tasks

See the file [BUILDING][] for hacking instructions.

[gemcutter]: http://gemcutter.org/gems/rdiscount
[BUILDING]: BUILDING

USAGE
-----
Expand Down

0 comments on commit 7f63568

Please sign in to comment.