Skip to content

Instantly share code, notes, and snippets.

@cwolferh
Created January 31, 2013 01:37
Show Gist options
  • Select an option

  • Save cwolferh/4679159 to your computer and use it in GitHub Desktop.

Select an option

Save cwolferh/4679159 to your computer and use it in GitHub Desktop.
# specify an integer
DEV_TOOLS_PULL_REQUEST=xx
export FACTER_CONDUCTOR_PORT=3033
export WORKDIR=/home/$USER/pull-request-$DEV_TOOLS_PULL_REQUEST
export RBENV_VERSION=1.9.3-p374
rm -rf $WORKDIR
mkdir $WORKDIR
cd $WORKDIR
git clone https://github.com/aeolus-incubator/dev-tools.git
cd dev-tools
curl https://github.com/aeolus-incubator/dev-tools/pull/$DEV_TOOLS_PULL_REQUEST.patch | patch -p1
git diff | cat
echo '======================================================'
echo You are about to test the above patch.
echo Does this look like what you are expecting?
echo '======================================================'
echo Press Control-C to quit, or ENTER to continue
read waiting
/bin/bash -x bootstrap.sh 2>&1 | tee -a /tmp/dev-tools-pull-request-$DEV_TOOLS_PULL_REQUEST.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment