JAL-4134 use average distance between PAE elements as distance for tree calculation
[jalview.git] / utils / archive_building.sh
1 #!/usr/bin/env bash
2
3 J8HOME=/path/to/java8/jdk
4 J11HOME=/path/to/java11/jdk
5 OLDBUILDDIR=/path/to/old/build/root
6 JALVIEWDIR=/path/to/recent/jalview
7 LOCALARCHIVEDIR=/path/to/where/to/store/archive/locally
8 WEBSITEDOCROOTMOUNT=/path/to/mounted/website/docroot
9
10
11 cd OLDBUILDDIR
12 mkdir tar
13 cd tar
14 wget http://www.jalview.org/source/jalview_2_08b.tar.gz  http://www.jalview.org/source/jalview_2_2_1.tar.gz  http://www.jalview.org/source/jalview_2_3_buildfix.tar.gz http://www.jalview.org/source/jalview_2_4_0b2.tar.gz http://www.jalview.org/source/jalview_2_5_1.tar.gz http://www.jalview.org/source/jalview_2_6_1.tar.gz http://www.jalview.org/source/jalview_2_7.tar.gz http://www.jalview.org/source/jalview_2_8_2b1.tar.gz http://www.jalview.org/source/jalview_2_9_0b1.tar.gz http://www.jalview.org/source/jalview_2_10_5.tar.gz
15 cd -
16
17 export JAVA_HOME=J8HOME
18 export PATH=$JAVA_HOME/bin:$PATH
19
20 for x in tar/jalview_*.tar.gz
21 do
22         V=${x#*jalview_}
23         V=${V%.tar.gz}
24         echo $V
25         tar --one-top-level -xvf $x
26         cd jalview_$V/jalview
27         ant makedist -DJALVIEW_VERSION="$V"
28         cd -
29 done
30
31 export JAVA_HOME=J11HOME
32 export PATH=$JAVA_HOME/bin:$PATH
33
34 cd $JALVIEWDIR
35 for x in $OLDBUILDDIR/jalview_*/jalview
36 do
37         V=${x##*jalview_}
38         V=${V%/jalview}
39         echo $V
40         [ -e getdown/website ] && /bin/rm -r getdown/website
41         [ -e getdown/files ] && /bin/rm -r getdown/website
42         gradle getdown -PCHANNEL=ARCHIVE -PJALVIEW_VERSION="$V" -PJAVA_VERSION=1.8 -PARCHIVEDIR=$x -Pgetdown_rsync_dest=$LOCALARCHIVEDIR -PRUNRSYNC=true
43 done
44
45
46 cd $LOCALARCHIVEDIR
47 rsync -avh --delete $LOCALARCHIVEDIR/archive/ $WEBSITEDOCROOTMOUNT/getdown/archive/
48