File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,14 @@ as well as some commonly needed external packages
2525``` no-highlight
2626 git clone https://github.com/xsdk-project/installxSDK.git
2727 cd installxSDK
28+ git checkout v0.1.0
2829```
2930
3031or
3132
3233
3334``` no-highlight
34- curl https://raw.githubusercontent.com/xsdk-project/installxSDK/master /installxSDK.sh > installxSDK.sh
35+ curl https://raw.githubusercontent.com/xsdk-project/installxSDK/v0.1.0 /installxSDK.sh > installxSDK.sh
3536```
3637
3738##Usage
Original file line number Diff line number Diff line change 33PREFIX=" notset"
44WITHGIT=" git"
55PACKAGEDIR=" 0"
6+ PETSC_COMMIT=" v3.7"
7+
68for i in " $@ "
79 do
810 case $i in
@@ -46,18 +48,14 @@ if [ ! -d xsdk ]; then
4648fi
4749cd xsdk
4850
49- if [ " ${PETSC_BRANCH} x" = " x" ]; then
50- PETSC_BRANCH=" maint"
51- fi
52-
5351if [ ! -d petsc ]; then
5452 if [ " ${PACKAGEDIR} " != " 0" ]; then
5553 if [ ! -f ${PACKAGEDIR} /petsc.tar.gz ]; then
5654 echo " "
5755 echo " Running in firewall mode"
5856 echo " "
59- echo " Obtain the tarball https://bitbucket.org/petsc/petsc/get/master .tar.gz"
60- echo " put it in the directory ${PACKAGEDIR} "
57+ echo " Obtain the tarball https://bitbucket.org/petsc/petsc/get/${PETSC_COMMIT} .tar.gz"
58+ echo " put it in the directory ${PACKAGEDIR} with the name petsc.tar.gz "
6159 echo " Do not uncompress or untar it. Then run the script again"
6260 echo " "
6361 exit
@@ -71,7 +69,7 @@ if [ ! -d petsc ]; then
7169 ${WITHGIT} clone https://bitbucket.org/petsc/petsc.git petsc
7270 cd petsc
7371 else
74- curl https://bitbucket.org/petsc/petsc/get/maint .tar.gz > petsc.tar.gz
72+ curl https://bitbucket.org/petsc/petsc/get/${PETSC_COMMIT} .tar.gz > petsc.tar.gz
7573 dir=` tar -tzf petsc.tar.gz | head -1`
7674 tar zxf petsc.tar.gz
7775 mv -f ${dir} petsc
8179 if [ " ${WITHGIT} " != " 0" ]; then
8280 cd petsc
8381 git fetch
84- git checkout $PETSC_BRANCH
82+ git checkout $PETSC_COMMIT
8583 git pull
8684 fi
8785fi
You can’t perform that action at this time.
0 commit comments