-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[build website]patch docs #77
Conversation
docs/tutorials/patch_update.md
Outdated
If necessary, update R-devel | ||
|
||
```bash | ||
cd $TOP_SRCDIR | ||
svn update | ||
cd $BUILDDIR | ||
make # this will run the configure as before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to update this for the new $TOP_SRCDIR and $BUILDDIR. I suggest we always use "R-devel" as the default name for the built version
If necessary, update R-devel | |
```bash | |
cd $TOP_SRCDIR | |
svn update | |
cd $BUILDDIR | |
make # this will run the configure as before | |
If necessary, update the version of R you are working on, with the latest changes in <https://svn.r-project.org/R/trunk/>. E.g., if the version of R you are working on is named "R-devel-working" | |
```bash | |
cd $TOP_SRCDIR/R-devel-working | |
svn update | |
cd $BUILDDIR/R-devel-working | |
make # this will run the configure as before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry forgot to actually submit the review!
3. Then create a patch | ||
|
||
```bash | ||
cd "$TOP_SRCDIR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd "$TOP_SRCDIR" | |
cd "$TOP_SRCDIR/R-devel-working" |
docs/tutorials/patch_update.md
Outdated
```bash | ||
cd "$TOP_SRCDIR" | ||
svn update | ||
svn diff > patch.diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
svn diff > patch.diff | |
svn diff > $PATCHDIR/patch.diff |
docs/tutorials/patch_update.md
Outdated
This is not ideal though as the patch file will be in $TOP_SRCDIR and we want to keep that clean. Also we want our patches easy to find. Perhaps we can also define a PATCHDIR? | ||
|
||
PATCHDIR=/workspaces/r-dev-env/patches | ||
mkdir $PATCHDIR | ||
svn diff > $PATCHDIR/patch.diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part doesn't need to be in documentation. Instead
- Define the PATCHDIR env variable in the Docker container
- Make the corresponding directory when the container is created - put it in the bash script or use PostCreateCommand?
|
||
#### 1) Change Directory to TOP_SRCDIR | ||
|
||
If you are currently inside the BUILDDIR directory or root directory(/workspaces/r-dev-env) make sure to change it to TOP_SRCDIR so that we can update the changes made inside our source code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are currently inside the BUILDDIR directory or root directory(/workspaces/r-dev-env) make sure to change it to TOP_SRCDIR so that we can update the changes made inside our source code. | |
If you are currently inside the BUILDDIR directory or root directory(/workspaces/r-dev-env) make sure to change it to the source directory for the version of R you are working on so that we can update the changes made inside our source code. For example, |
If you are currently inside the BUILDDIR directory or root directory(/workspaces/r-dev-env) make sure to change it to TOP_SRCDIR so that we can update the changes made inside our source code. | ||
|
||
```bash | ||
cd $TOP_SRCDIR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd $TOP_SRCDIR | |
cd $TOP_SRCDIR/R-devel-working |
To rebuild the R version and reflect on the changes made, we want to change directory to BUILDDIR from TOP_SRCDIR | ||
|
||
```bash | ||
cd $BUILDDIR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd $BUILDDIR | |
cd $BUILDDIR/R-devel-working |
make check | ||
make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make check | |
make | |
make | |
make check |
PR for issue no #40 #43
The patchdir should be mention in dockerfile!?