Last active
June 27, 2018 00:10
-
-
Save brianv0/d6a71f9b38ec20093972ab49ab6e602b to your computer and use it in GitHub Desktop.
Fermi bootstrapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| pip install scons fermi-repoman | |
| curl -O "https://gist.githubusercontent.com/brianv0/d6a71f9b38ec20093972ab49ab6e602b/raw/5393d651c575cb00f3faafca9b35e40f8d219bd0/load_externals.sh" | |
| repoman --remote-base=https://github.com/fermi-lat checkout GlastRelease GlastRelease-20-10-04-gr04 | |
| scons -C GlastRelease --site-dir=../SConsShared/site_scons --with-GLAST-EXT="" --externalsList | grep -v scons | grep -v "=\|\:\|(\|Creating" | grep [A-Za-z] | sed 's/ /-/' > externals.txt | |
| bash load_externals.sh | |
| scons -C GlastRelease --site-dir=../SConsShared/site_scons --with-GLAST-EXT=/home/centos/externals all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #externals=$(cat externals.txt | grep -v "python" | grep -v "x11" |grep -v "zlib") | |
| externals=$(cat externals.txt | grep -v "x11" | grep -v "zlib") | |
| mkdir externals | |
| cd externals | |
| for external in $externals | |
| do | |
| link="https://www.slac.stanford.edu/exp/glast/ground/software/nfsLinks/u52/externals/redhat6-x86_64-64bit-gcc44/${external}.tar.gz" | |
| printf "Downloading ${external}\n at $link\n" | |
| curl -f -s -O $link | |
| rc=$? | |
| if [[ $rc != 0 ]]; then | |
| printf "Link not downloaded: $link" | |
| exit 1 | |
| fi | |
| printf "Extracting ${external}\n" | |
| tar xzf "${external}.tar.gz" | |
| rm "${external}.tar.gz" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment