Skip to content

Commit

Permalink
Merge pull request #509 from bmad-sim/external_deps_docs
Browse files Browse the repository at this point in the history
External deps docs
  • Loading branch information
DavidSagan committed Sep 25, 2023
2 parents b09db0c + 7801032 commit 5fe1937
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ xraylib/*
gnu_utilities_src/*
packages/*

# Jupyter notebooks
.ipynb_checkpoints

bmad-doc/tutorial_bmad_tao/doc/2www.pl
bmad-doc/tutorial_bmad_tao/doc/tutorial_bmad_tao.aux
bmad-doc/tutorial_bmad_tao/doc/tutorial_bmad_tao.bbl
Expand Down Expand Up @@ -71,4 +74,4 @@ regression_tests/twiss_track_test/twiss.out

*.digested*
production
debug
debug
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,33 @@ Two possibilities for setting up Bmad:
Or if you want to compile Bmad directly:
- Download a **Release** (click on link on right hand side of this page and download the **bmad_dist.tar.gz** file [Ignore the *source code* files.]) and follow the setup instructions at <https://wiki.classe.cornell.edu/ACC/ACL/OffsiteDoc>.


## Developer Setup

Developers should clone this repository, as well as its external dependencies:

```bash
git clone https://github.com/bmad-sim/bmad-ecosystem.git
git clone https://github.com/bmad-sim/bmad-external-deps.git
```

The external dependencies repository is simply a set of compressed files. A simple bash script is provided to extract these into the `bmad-ecosystem`:
```bash
cd bmad-ecosystem
bash util/extract_external_deps
```

To build everything:
```bash
cd bmad-ecosystem
source util/dist_source_me
util/dist_build_production
```





## Contributing to Bmad: Pull Requests

What is a Pull Request? A Pull Request (PR) is a mechanism for requesting that changes that you have made
Expand Down
7 changes: 7 additions & 0 deletions util/extract_external_deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
DEPS=../bmad-external-deps/

for dep in $DEPS/*.tar.gz;
do
tar xzvf $dep -C .
done

0 comments on commit 5fe1937

Please sign in to comment.